From fc216fe665ac13af56d0660a05e7f39843ea5761 Mon Sep 17 00:00:00 2001 From: Ossama Othman Date: Thu, 25 Mar 1999 19:38:51 +0000 Subject: * ace/OS.h: * ace/README: Added ACE_HAS_BROKEN_MAP_FAILED macro for platforms that do not cast MAP_FAILED to a (void *). Defining this macro prevents compilers on those platforms from complaining about assigning an int to a (void *). Thanks to Roland Gigler for providing feedback about this. --- ace/OS.h | 5 +++-- ace/README | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'ace') diff --git a/ace/OS.h b/ace/OS.h index 49026e34524..badab07f086 100644 --- a/ace/OS.h +++ b/ace/OS.h @@ -4087,12 +4087,13 @@ typedef void *(*ACE_THR_C_FUNC)(void *); # endif /* VXWORKS */ } -# if !defined (MAP_FAILED) +# if !defined (MAP_FAILED) || defined (ACE_HAS_BROKEN_MAP_FAILED) +# undef MAP_FAILED # define MAP_FAILED ((void *) -1) # elif defined (ACE_HAS_LONG_MAP_FAILED) # undef MAP_FAILED # define MAP_FAILED ((void *) -1L) -# endif /* MAP_FAILED */ +# endif /* !MAP_FAILED || ACE_HAS_BROKEN_MAP_FAILED */ # if defined (ACE_HAS_CHARPTR_DL) typedef char * ACE_DL_TYPE; diff --git a/ace/README b/ace/README index b27ca2f069f..e76dbe330f0 100644 --- a/ace/README +++ b/ace/README @@ -186,6 +186,8 @@ ACE_HAS_BROKEN_ENUMS Compiler can't handle large enums (e.g., HP/UX C++) ACE_HAS_BROKEN_HPUX_TEMPLATES Earlier versions of HP/UX C++ are damned... +ACE_HAS_BROKEN_MAP_FAILED Platform doesn't cast MAP_FAILED + to a void *. ACE_HAS_BROKEN_MSG_H Platform headers don't support prototypes ACE_HAS_BROKEN_MMAP_H HP/UX does not wrap the -- cgit v1.2.1