aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/types.h
diff options
context:
space:
mode:
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