Skip to content

Commit eab651b

Browse files
author
minggo
committed
Merge pull request #216 from MSOpenTech/v3-winrt-chipmunk
v3.11 build winrt versions with correct definition of CP_EXPORT
2 parents 0d212d7 + 120b93f commit eab651b

File tree

7 files changed

+5
-1
lines changed

7 files changed

+5
-1
lines changed

chipmunk/include/chipmunk/chipmunk.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828
#ifdef WIN32
2929
// For alloca().
3030
#include <malloc.h>
31-
#define CP_EXPORT __declspec(dllexport)
31+
#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
32+
#define CP_EXPORT __declspec(dllexport)
33+
#else
34+
#define CP_EXPORT
35+
#endif
3236
#else
3337
#include <alloca.h>
3438
#define CP_EXPORT
-10.5 KB
Binary file not shown.
-11.4 KB
Binary file not shown.
-10.5 KB
Binary file not shown.
-10.7 KB
Binary file not shown.
-10.5 KB
Binary file not shown.
-10.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)