fix linux builds
This commit is contained in:
parent
1a4352f40b
commit
a93fa23cc4
22
dist.sh
22
dist.sh
@ -1,11 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
rm -rf dist/
|
rm -rf dist/
|
||||||
mkdir dist/
|
mkdir dist/
|
||||||
[ -f "test.so" ] && cp test.so dist/
|
[ -f "test.so" ] && cp test.so dist/
|
||||||
[ -f "test.dll" ] && cp test.dll dist/
|
[ -f "test.dll" ] && cp test.dll dist/
|
||||||
cp conf.lua main.lua dist/
|
cp conf.lua main.lua dist/
|
||||||
|
|
||||||
( cd dist/ ; zip -r ../test.zip . )
|
( cd dist/ ; zip -r ../test.zip . )
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define EXPORT __declspec(dllexport)
|
#define EXPORT __declspec(dllexport)
|
||||||
#define DECL __cdecl
|
#define DECL __cdecl
|
||||||
@ -7,3 +8,7 @@
|
|||||||
#define EXPORT __attribute__((dllexport))
|
#define EXPORT __attribute__((dllexport))
|
||||||
#define DECL __attribute__((__cdecl__))
|
#define DECL __attribute__((__cdecl__))
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#define EXPORT
|
||||||
|
#define DECL
|
||||||
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user