# include <stdlib.h>
# include <stdio.h>
-# ifndef WIN32
+# if !defined (WIN32) && !(defined (OS2) && defined (__IBMC__))
/* Microsoft VC++ still doesn't support ISO C99... */
# include <stdbool.h>
# endif
+#if defined (OS2) && defined (__IBMC__)
+extern int snprintf (char *str, size_t count, const char *fmt, ...);
+#endif
+
# include <string.h>
# include <ctype.h>
# include <float.h>