From 0e7f59d98705add41f8e6cc501fb8a93346a3de7 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Thu, 14 Aug 2008 06:38:35 +0000 Subject: [PATCH] Fix for building under Innotek C (I hope). Report by Elbert Pol, fix courtesy of Paul Smedley. --- os2/pdcos2.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/os2/pdcos2.h b/os2/pdcos2.h index 148e4f26..1c11d480 100644 --- a/os2/pdcos2.h +++ b/os2/pdcos2.h @@ -1,6 +1,6 @@ /* Public Domain Curses */ -/* $Id: pdcos2.h,v 1.8 2008/07/13 06:36:31 wmcbrine Exp $ */ +/* $Id: pdcos2.h,v 1.9 2008/08/14 06:38:35 wmcbrine Exp $ */ #ifdef _MSC_VER # define USE_OS2_H 1 /* Use the os2.h for the compiler */ @@ -36,7 +36,11 @@ typedef void * SEG16 ptr_16; #else # ifdef __EMX__ -# define PDCTHUNK(x) ((PCH)_emx_32to16(x)) +# ifdef __INNOTEK_LIBC__ +# define PDCTHUNK(x) ((PCH)_libc_32to16(x)) +# else +# define PDCTHUNK(x) ((PCH)_emx_32to16(x)) +# endif # endif #endif