Skip to content

Commit

Permalink
Fix for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Romain committed Nov 21, 2023
1 parent d5d98a1 commit 045c8cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/LASlib/lasreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
===============================================================================
*/

#ifdef _WIN32
#include <windows.h>
#endif

#include "lasreader.hpp"

#include "lasindex.hpp"
Expand Down
4 changes: 2 additions & 2 deletions src/LASlib/lasreader_txt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,7 @@ BOOL LASreaderTXT::parse(const char* parse_string)
}
else if (p[0] == 'H') // we expect a hexadecimal coded RGB color
{
I32 hex_value;
U32 hex_value;
char hex_string[3] = "__";
while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t' || l[0] == ';' || l[0] == '\"')) l++; // first skip white spaces and quotes
if (l[0] == 0) return FALSE;
Expand All @@ -1875,7 +1875,7 @@ BOOL LASreaderTXT::parse(const char* parse_string)
}
else if (p[0] == 'J') // we expect a hexadecimal coded intensity
{
I32 hex_value;
U32 hex_value;
while (l[0] && (l[0] == ' ' || l[0] == ',' || l[0] == '\t' || l[0] == ';' || l[0] == '\"')) l++; // first skip white spaces and quotes
if (l[0] == 0) return FALSE;
sscanf(l, "%x", &hex_value);
Expand Down

0 comments on commit 045c8cf

Please sign in to comment.