moonbridge

changeset 137:46ebdc5bf825

Added _GNU_SOURCE #define for Linux; Avoid compiler warning
author jbe
date Thu Apr 16 22:20:33 2015 +0200 (2015-04-16)
parents ae23bcae95d1
children 2097b1835d96
files moonbridge_io.c
line diff
     1.1 --- a/moonbridge_io.c	Thu Apr 16 22:12:34 2015 +0200
     1.2 +++ b/moonbridge_io.c	Thu Apr 16 22:20:33 2015 +0200
     1.3 @@ -1,4 +1,7 @@
     1.4  
     1.5 +#if defined(__linux__)
     1.6 +#define _GNU_SOURCE
     1.7 +#endif
     1.8  #include <stdlib.h>
     1.9  #include <stdint.h>
    1.10  #include <string.h>
    1.11 @@ -139,7 +142,7 @@
    1.12    lua_Integer maxread;
    1.13    const char *terminatorstr;
    1.14    size_t terminatorlen;
    1.15 -  char terminator;
    1.16 +  char terminator = 0;  /* initialize to avoid compiler warning */
    1.17    luaL_Buffer luabuf;
    1.18    size_t luabufcnt = 0;
    1.19    int remaining;

Impressum / About Us