From: Stefan Neis Date: Sun, 1 Feb 2009 06:08:56 +0000 (+0000) Subject: Fixed compilation error on OS/2 (strnlen declaration was not visible). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6d8978f030996c834fcd29d85d95ebe261b8defc Fixed compilation error on OS/2 (strnlen declaration was not visible). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/platform.h b/include/wx/platform.h index 7e1124426e..d6c317db1f 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -403,6 +403,10 @@ # ifdef __EMX__ # define OS2EMX_PLAIN_CHAR +# endif +# if defined(__INNOTEK_LIBC__) + /* Ensure visibility of strnlen declaration */ +# define _GNU_SOURCE # endif /* define __HPUX__ for HP-UX where standard macro is __hpux */