Skip to content

Commit

Permalink
More robust check for Win32
Browse files Browse the repository at this point in the history
Added more robust check for Win32 and the presence of _BitScanReverse.
Fixed #56
  • Loading branch information
DuffsDevice authored Nov 2, 2020
1 parent 411dfba commit 08d3413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tinyutf8/tinyutf8.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ namespace tiny_utf8
template<typename T>
static inline unsigned int lzcnt( T value ) noexcept {
unsigned long value_log2;
#ifndef WIN32
#if !defined( WIN32 ) && !defined( _WIN32 ) && !defined( __WIN32__ )
_BitScanReverse64( &value_log2 , value );
#else
_BitScanReverse( &value_log2 , value );
Expand Down

0 comments on commit 08d3413

Please sign in to comment.