ulid icon indicating copy to clipboard operation
ulid copied to clipboard

_MSC_VER macro is specific to IDE

Open utdrmac opened this issue 1 year ago • 0 comments

Using this library in a linux application, compiled with g++:

/home/xxxx/percona-server-8.0.32-24/plugin/ulid/ulid/src/ulid_uint128.hh:11:5: warning: "_MSC_VER" is not defined, evaluates to 0 [-Wundef]
 #if _MSC_VER > 0
     ^~~~~~~~

A quick google says _MSC_VER is something specific to Visual Studio Code. Please add an #ifdef before checking the value so that other IDEs/compilers don't complain.

utdrmac avatar Jun 21 '23 01:06 utdrmac