Change WIN32 to _WIN32. (#260)
WIN32 is defined by the SDK, but _WIN32 is defined by the compiler. Since Dawn doesn't necessarily include <windows.h> everywhere dawn.h is included, we should use _WIN32 (which will always be defined).
This commit is contained in:
parent
7b0f760a9a
commit
75559bf1be
|
@ -15,7 +15,7 @@
|
|||
#ifndef DAWN_EXPORT_H_
|
||||
#define DAWN_EXPORT_H_
|
||||
|
||||
#if defined(WIN32)
|
||||
#if defined(_WIN32)
|
||||
# if defined(DAWN_IMPLEMENTATION)
|
||||
# define DAWN_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#ifndef DAWNNATIVE_EXPORT_H_
|
||||
#define DAWNNATIVE_EXPORT_H_
|
||||
|
||||
#if defined(WIN32)
|
||||
#if defined(_WIN32)
|
||||
# if defined(DAWN_NATIVE_IMPLEMENTATION)
|
||||
# define DAWN_NATIVE_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#ifndef DAWNWIRE_EXPORT_H_
|
||||
#define DAWNWIRE_EXPORT_H_
|
||||
|
||||
#if defined(WIN32)
|
||||
#if defined(_WIN32)
|
||||
# if defined(DAWN_WIRE_IMPLEMENTATION)
|
||||
# define DAWN_WIRE_EXPORT __declspec(dllexport)
|
||||
# else
|
||||
|
|
Loading…
Reference in New Issue