| diff -ru SmallBASIC.orig/configure.ac SmallBASIC/configure.ac |
| |
| |
| @@ -117,7 +117,7 @@ |
| |
| if test "${have_pcre}" = "yes" ; then |
| AC_DEFINE(USE_PCRE, 1, [match.c used with libpcre.]) |
| - PACKAGE_LIBS="${PACKAGE_LIBS} `pcre-config --libs`" |
| + PACKAGE_LIBS="${PACKAGE_LIBS} ${PCRE_LIBS}" |
| fi |
| } |
| |
| @@ -325,7 +325,7 @@ |
| checkProfiling |
| checkForWindows |
| |
| -CFLAGS="${CFLAGS} -std=gnu11" |
| +CFLAGS="${CFLAGS} -std=gnu99" |
| PACKAGE_CFLAGS="${PACKAGE_CFLAGS} -Wall -Wno-unused-result" |
| BUILD_DATE=`date +"%a, %d %b %Y"` |
| AC_DEFINE_UNQUOTED([BUILD_DATE],["$BUILD_DATE"],[Build date]) |
| diff -ru SmallBASIC.orig/src/platform/console/main.cpp SmallBASIC/src/platform/console/main.cpp |
| |
| |
| @@ -332,7 +332,7 @@ |
| return gsb_last_error ? gsb_last_line : 0; |
| } |
| |
| -#if defined(__GNUC__) && !defined(__MACH__) && !defined(_Win32) |
| +#if defined(__GLIBC__) && !defined(__MACH__) && !defined(_Win32) |
| // for analysing excessive malloc calls using kdbg |
| extern "C" void *__libc_malloc(size_t size); |
| void *malloc(size_t size) { |