changeset 543:8217ee5c254e

Get EMX compiling again.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 03 Apr 2004 06:52:12 +0000
parents a95f39e81fe2
children 536b32eb0cb0
files compat.h os2/dw.c
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/compat.h	Thu Apr 01 07:48:52 2004 +0000
+++ b/compat.h	Sat Apr 03 06:52:12 2004 +0000
@@ -65,14 +65,14 @@
 #define API _System
 #endif
 
+#ifndef API
+#define API
+#endif
+
 #define msleep(a) DosSleep(a)
 
 #ifdef __EMX__
-#ifdef _System
 #include "platform/dirent.h"
-#else
-#include <dirent.h>
-#endif
 #include <sys/stat.h>
 #define HAVE_PIPE
 #ifdef FD_SETSIZE
--- a/os2/dw.c	Thu Apr 01 07:48:52 2004 +0000
+++ b/os2/dw.c	Sat Apr 03 06:52:12 2004 +0000
@@ -4201,7 +4201,7 @@
 			   MPFROMP(&miSubMenu),
 			   MPFROMP(title));
 
-	sprintf(buffer, "_dw_id%d", id);
+	sprintf(buffer, "_dw_id%d", (int)id);
 	dw_window_set_data(hwndApp, buffer, (void *)menux);
 
 	if(submenu)