]> granicus.if.org Git - python/commitdiff
FreeBSD 5.x uses different wchar_t/win_t guards than earlier versions
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Sun, 29 Jun 2003 15:46:21 +0000 (15:46 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Sun, 29 Jun 2003 15:46:21 +0000 (15:46 +0000)
Include/py_curses.h

index 3ecf48fcdff74e8b0a9484a4bdc9443114691f25..aaff4bd836f3fd31495c357002b6d6c621797704 100644 (file)
 ** against multiple definition of wchar_t and wint_t.
 */
 #ifdef _XOPEN_SOURCE_EXTENDED
+#ifndef __FreeBSD_version
+#include <osreldate.h>
+#endif
+#if __FreeBSD_version >= 500000
+#ifndef __wchar_t
+#define __wchar_t
+#endif
+#ifndef __wint_t
+#define __wint_t
+#endif
+#else
 #ifndef _WCHAR_T
 #define _WCHAR_T
 #endif
@@ -26,6 +37,7 @@
 #endif
 #endif
 #endif
+#endif
 
 #ifdef HAVE_NCURSES_H
 #include <ncurses.h>