ref: 297c9b5fdba66116c2e975789ad7d2d640123114
parent: 49cc61770c6fadfa7a4f2a214a7040db129f3a08
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Wed Dec 31 11:25:47 EST 2003
Portability update. Newer cygwin does provide stdint.h, conflicting with the work-around we installed for older cygwin. Thanks to Alex Cherpanov for this. git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@305 ded80894-8fb9-0310-811b-c03f3676ab4d
--- a/os_types.h
+++ b/os_types.h
@@ -19,7 +19,7 @@
/*
indirection layer for build and platform-specific definitions
- in general, this header should insure that the stdint types are
+ in general, this header should ensure that the stdint types are
available, and that any optional compile flags are defined if
the build system doesn't pass them directly.
*/
@@ -27,11 +27,12 @@
#ifndef _JBIG2_OS_TYPES_H
#define _JBIG2_OS_TYPES_H
-#ifdef __CYGWIN__
+#if defined(__CYGWIN__) && !defined(HAVE_STDINT_H)
# include <sys/types.h>
/*
- * Cygwin has no stdint.h but defines "MS types". Some of them conflict with
- * a standard type emulation provided by config_types.h .
+ * Old versions of Cygwin have no stdint.h but define "MS types". Some of
+ * them conflict with a standard type emulation provided by config_types.h
+ * so we do a fixup here.
*/
typedef u_int8_t uint8_t;
typedef u_int16_t uint16_t;