From a93fa23cc418fb407e9c07c8bfb87b69c5a3a076 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Mon, 23 Mar 2026 02:50:25 -0500 Subject: [PATCH] fix linux builds --- dist.sh | 22 +++++++++++----------- include/declarations.h | 5 +++++ 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/dist.sh b/dist.sh index aaed387..4817552 100644 --- a/dist.sh +++ b/dist.sh @@ -1,11 +1,11 @@ -#!/bin/sh - -set -eux - -rm -rf dist/ -mkdir dist/ -[ -f "test.so" ] && cp test.so dist/ -[ -f "test.dll" ] && cp test.dll dist/ -cp conf.lua main.lua dist/ - -( cd dist/ ; zip -r ../test.zip . ) +#!/bin/sh + +set -eux + +rm -rf dist/ +mkdir dist/ +[ -f "test.so" ] && cp test.so dist/ +[ -f "test.dll" ] && cp test.dll dist/ +cp conf.lua main.lua dist/ + +( cd dist/ ; zip -r ../test.zip . ) diff --git a/include/declarations.h b/include/declarations.h index 0cc69d6..5f75844 100644 --- a/include/declarations.h +++ b/include/declarations.h @@ -1,5 +1,6 @@ #pragma once +#ifdef _WIN32 #ifdef _MSC_VER #define EXPORT __declspec(dllexport) #define DECL __cdecl @@ -7,3 +8,7 @@ #define EXPORT __attribute__((dllexport)) #define DECL __attribute__((__cdecl__)) #endif +#else +#define EXPORT +#define DECL +#endif