Skip to content

Commit

Permalink
Check _WIN32 instead of WIN32 for building shared library
Browse files Browse the repository at this point in the history
_WIN32 is defined by MSVC compilers on Windows platform, not
WIN32.

See https://msdn.microsoft.com/en-us/library/b0084kay.aspx

Addresses #383
  • Loading branch information
antiagainst committed Sep 29, 2017
1 parent 00c9fe4 commit c8ba3e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libshaderc/include/shaderc/shaderc.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" {

// SHADERC_EXPORT tags symbol that will be exposed by the shared library.
#if defined(SHADERC_SHAREDLIB)
#if defined(WIN32)
#if defined(_WIN32)
#if defined(SHADERC_IMPLEMENTATION)
#define SHADERC_EXPORT __declspec(dllexport)
#else
Expand Down

0 comments on commit c8ba3e4

Please sign in to comment.