Port Gambatte
This commit is contained in:
parent
b5d188ad5e
commit
ada256b0f1
Binary file not shown.
|
@ -11,7 +11,7 @@ else
|
||||||
$(error Unknown arch)
|
$(error Unknown arch)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CXXFLAGS = -Wall -Iinclude -Isrc -O3 -std=c++11 -fno-exceptions -flto
|
CXXFLAGS = -Wall -Iinclude -Isrc -O3 -std=c++11 -fno-exceptions -flto -fPIC
|
||||||
TARGET = libgambatte.dll
|
TARGET = libgambatte.dll
|
||||||
LDFLAGS_32 = -static -static-libgcc -static-libstdc++
|
LDFLAGS_32 = -static -static-libgcc -static-libstdc++
|
||||||
LDFLAGS_64 =
|
LDFLAGS_64 =
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
// these are all documented on the C# side
|
// these are all documented on the C# side
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
#define GBEXPORT extern "C" __declspec(dllexport)
|
#define GBEXPORT extern "C" __declspec(dllexport)
|
||||||
|
#elif __linux__
|
||||||
|
#define GBEXPORT extern "C"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue