commit | b8428a2a25e6b0aff8ca33dd3d34c5c38fdb8749 | [log] [tgz] |
---|---|---|
author | Tay Ray Chuan <rctay89@gmail.com> | Mon Jan 02 15:49:31 2012 +0800 |
committer | Daniel Veillard <veillard@redhat.com> | Thu Jan 26 17:47:24 2012 +0800 |
tree | c46868fc7c5675a816ae035cac916ff88c87392c | |
parent | a6b14bf9fde119e85056ac82a358ddb4fe2aa12d [diff] [blame] |
fix reference to STDOUT_FILENO on MSVC The Microsoft Visual C++ compiler doesn't have unistd.h and thus STDOUT_FILENO is undefined. Define it using stdio.h functions.
diff --git a/testC14N.c b/testC14N.c index dc1a9a6..f735a29 100644 --- a/testC14N.c +++ b/testC14N.c
@@ -13,7 +13,9 @@ #include <string.h> #ifdef HAVE_UNISTD_H #include <unistd.h> -#endif +#else +#define STDOUT_FILENO fileno(stdout) +#endif /* HAVE_UNISTD_H */ #ifdef HAVE_STDLIB_H #include <stdlib.h> #endif