From f886e69dfbed8315599fb023704b3f32ab9be080 Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Fri, 15 Aug 2014 23:23:11 +0100 Subject: [PATCH] Fixed linux build. --- compiler/amxxpc/amxxpc.cpp | 1 - compiler/libpc300/AMBuilder | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/amxxpc/amxxpc.cpp b/compiler/amxxpc/amxxpc.cpp index 8dca2ed5..c5734db9 100755 --- a/compiler/amxxpc/amxxpc.cpp +++ b/compiler/amxxpc/amxxpc.cpp @@ -46,7 +46,6 @@ int main(int argc, char **argv) #if defined(EMSCRIPTEN) COMPILER sc32 = (COMPILER)Compile32; - //pc_printf = (PRINTF)pc_printf; #else # if defined(__linux__) HINSTANCE lib = NULL; diff --git a/compiler/libpc300/AMBuilder b/compiler/libpc300/AMBuilder index 87e59f61..3776948c 100644 --- a/compiler/libpc300/AMBuilder +++ b/compiler/libpc300/AMBuilder @@ -13,6 +13,7 @@ binary.compiler.defines += [ 'NO_MAIN', 'PAWNC_DLL', 'HAVE_STDINT_H', + '_GNU_SOURCE', ] binary.sources = [