ulid
ulid copied to clipboard
_MSC_VER macro is specific to IDE
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.