summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/demo.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/demo.cxx b/test/demo.cxx
index aa0b7734c..1e9382235 100644
--- a/test/demo.cxx
+++ b/test/demo.cxx
@@ -30,10 +30,12 @@
#include <stdlib.h>
#if defined(WIN32) && !defined(__CYGWIN__)
# include <direct.h>
+# if !defined(__WATCOMC__)
// Visual C++ 2005 incorrectly displays a warning about the use of POSIX APIs
// on Windows, which is supposed to be POSIX compliant...
-# define chdir _chdir
-# define putenv _putenv
+# define chdir _chdir
+# define putenv _putenv
+# endif // !__WATCOMC__
#else
# include <unistd.h>
#endif