From 6d8978f030996c834fcd29d85d95ebe261b8defc Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 1 Feb 2009 06:08:56 +0000 Subject: [PATCH] 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 --- include/wx/platform.h | 4 ++++ 1 file changed, 4 insertions(+) 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 */ -- 2.50.0