Skip to content

Commit

Permalink
Use _WIN32 define instead of WIN32 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
netadr authored Mar 12, 2024
1 parent abded75 commit 629558c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/safetyhook/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#endif
#endif

#if defined(WIN32)
#if defined(_WIN32)
#define SAFETYHOOK_OS_WINDOWS 1
#define SAFETYHOOK_OS_LINUX 0
#elif defined(__linux__)
Expand Down Expand Up @@ -71,4 +71,4 @@
#define SAFETYHOOK_NOINLINE __declspec(noinline)
#elif SAFETYHOOK_COMPILER_GCC || SAFETYHOOK_COMPILER_CLANG
#define SAFETYHOOK_NOINLINE __attribute__((noinline))
#endif
#endif

0 comments on commit 629558c

Please sign in to comment.