on some systems (HP-UX), strtok_r() needs _REENTRANT to be defined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
80810ca399
commit
d64af447da
@ -2130,6 +2130,13 @@ if test "$wxUSE_THREADS" = "yes"; then
|
||||
CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
|
||||
|
||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
|
||||
else
|
||||
dnl on some systems, _REENTRANT should bedefined if we want to use any _r()
|
||||
dnl functions - add tests for other functions here as well
|
||||
if test "$ac_cv_func_strtok_r" = "yes"; then
|
||||
CFLAGS="${CFLAGS} -D_REENTRANT"
|
||||
CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$WXGTK12" = 1 ; then
|
||||
|
Loading…
Reference in New Issue
Block a user