Commit c062a5d5 authored by nanahira's avatar nanahira

constexpr in server

parent 707a9f1b
...@@ -101,11 +101,15 @@ inline FILE* mywfopen(const wchar_t* filename, const char* mode) { ...@@ -101,11 +101,15 @@ inline FILE* mywfopen(const wchar_t* filename, const char* mode) {
#include <irrlicht.h> #include <irrlicht.h>
#endif #endif
#ifdef YGOPRO_SERVER_MODE
#define SHARE_VERSION constexpr
#else
#if defined(_MSC_VER) #if defined(_MSC_VER)
# define SHARE_VERSION __declspec(selectany) # define SHARE_VERSION __declspec(selectany)
#else #else
# define SHARE_VERSION __attribute__((weak)) # define SHARE_VERSION __attribute__((weak))
#endif #endif
#endif
extern "C" { extern "C" {
SHARE_VERSION uint16_t PRO_VERSION = 0x1362; SHARE_VERSION uint16_t PRO_VERSION = 0x1362;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment