diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b3451987..8e61e6953 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -785,6 +785,10 @@ elseif(BUILD_GLES2) set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libgles2") endif() +if (WIN32 AND NOT USE_EPOXY) + message(FATAL_ERROR "Windows requires epoxy module!") +endif() + if(USE_SQLITE3) list(APPEND FEATURES SQLITE3) include_directories(AFTER ${SQLITE3_INCLUDE_DIRS}) diff --git a/src/platform/cmake/Findepoxy.cmake b/src/platform/cmake/Findepoxy.cmake index 1f56add79..0a5ce4091 100644 --- a/src/platform/cmake/Findepoxy.cmake +++ b/src/platform/cmake/Findepoxy.cmake @@ -8,7 +8,3 @@ endif() if(EPOXY_LIBRARIES AND EPOXY_INCLUDE_DIRS) set(epoxy_FOUND TRUE) endif() - -if (WIN32 AND NOT epoxy_FOUND) - message(FATAL_ERROR "Windows requires epoxy module!") -endif() diff --git a/src/platform/python/_builder.h b/src/platform/python/_builder.h index 7c37e4a18..a0a27d5a7 100644 --- a/src/platform/python/_builder.h +++ b/src/platform/python/_builder.h @@ -5,6 +5,7 @@ #define _SYS_TIME_H_ #define _TIME_H #define _TIME_H_ +#define MGBA_EXPORT #define ATTRIBUTE_FORMAT(X, Y, Z) #define DECL_BITFIELD(newtype, oldtype) typedef oldtype newtype diff --git a/src/platform/python/_builder.py b/src/platform/python/_builder.py index 6b76ee698..82c484e64 100644 --- a/src/platform/python/_builder.py +++ b/src/platform/python/_builder.py @@ -18,6 +18,7 @@ cppflags.extend(["-I" + incdir, "-I" + srcdir, "-I" + bindir]) ffi.set_source("mgba._pylib", """ #define static #define inline +#define MGBA_EXPORT #include #define OPAQUE_THREADING #include