chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH 0/1] Add _XOPEN_SOURCE feature test macro


From: Evan Hanson
Subject: [Chicken-hackers] [PATCH 0/1] Add _XOPEN_SOURCE feature test macro
Date: Fri, 13 Jan 2017 16:08:02 +1300

Hi hackers,

Another small patch for Windows. This one fixes a symbol visibility
problem when building CHICKEN on Cygwin (64-bit), where the following
currently occurs:

  ./chicken-boot-stage1.exe  posixunix.scm -optimize-level 2 -include-path . 
-include-path ./ -inline -ignore-repository -feature chicken-bootstrap 
-no-warnings -specialize -types ./types.db   -explicit-use -no-trace 
-output-file posixunix.c
  gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES 
-c -Os -fomit-frame-pointer  -DC_BUILDING_LIBCHICKEN posixunix.c -o 
posixunix-static.o -I. -I./
  posixunix.c: In function `stub1783':
  posixunix.c:401:10: warning: implicit declaration of function `strptime' 
[-Wimplicit-function-declaration]
           (strptime(C_c_string(s), C_c_string(f), ((struct tm *)(stm))) ? 
C_tm_get((v), (stm)) : C_SCHEME_FALSE)
            ^
  posixunix.c:840:14: note: in expansion of macro `C_strptime'
   C_r=((C_word)C_strptime(t0,t1,t2,t3));
                ^

After some reading, defining _XOPEN_SOURCE seems to be the correct thing
to do in general, as well.

Cheers,

Evan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]