* Added support for mingw32.
[fw/sdcc] / support / cpp / cpplib.c
index cc0b5cb2ce637bdff7cd1882b2f907c8379849e8..06d7e71fa327d7a2b54c33fafe48c3c82b50400b 100644 (file)
@@ -78,6 +78,9 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 #include <stdlib.h>
 #endif
 
+#ifdef __MINGW32__
+#include <time.h>
+#else
 #ifdef __BORLANDC__
 #include <time.h>
 #else
@@ -93,6 +96,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 #endif /* USG */
 #endif /* not VMS */
 #endif
+#endif
 
 /* This defines "errno" properly for VMS, and gives us EACCES. */
 #include <errno.h>