aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/types.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-12-02 07:48:09 +0000
committerWerner Koch <[email protected]>2004-12-02 07:48:09 +0000
commit4a73d94757f61e4aa2d1841535409622c2c473e3 (patch)
tree3848fcc2f05e79f26e776f6e4dfa133aeff8d04e /jnlib/types.h
parent2004-11-30 Timo Schulz <[email protected]> (diff)
downloadgnupg-4a73d94757f61e4aa2d1841535409622c2c473e3.tar.gz
gnupg-4a73d94757f61e4aa2d1841535409622c2c473e3.zip
First take on a W32 port
Diffstat (limited to 'jnlib/types.h')
-rw-r--r--jnlib/types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/jnlib/types.h b/jnlib/types.h
index 230d1502f..934b7a6ee 100644
--- a/jnlib/types.h
+++ b/jnlib/types.h
@@ -42,7 +42,11 @@
#ifndef HAVE_BYTE_TYPEDEF
#undef byte /* maybe there is a macro with this name */
+/* Windows typedefs byte in the rpc headers. Avoid warning about
+ double definition. */
+#if !(defined(_WIN32) && defined(cbNDRContext))
typedef unsigned char byte;
+#endif
#define HAVE_BYTE_TYPEDEF
#endif