This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] libc/include/sys/config.h


Hi,

I've just applied the following patch.  It removes all Cygwin specific
stuff from libc/include/sys/config.h and includes a file cygwin/config.h
instead.  This file is new in winsup/cygwin/include/cygwin.


Corinna


	* libc/include/sys/config.h: Remove all Cygwin specific configuration.
	Include cygwin/config.h instead.

Index: libc/include/sys/config.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/config.h,v
retrieving revision 1.37
diff -p -u -r1.37 config.h
--- libc/include/sys/config.h	9 Mar 2003 21:52:23 -0000	1.37
+++ libc/include/sys/config.h	9 May 2003 21:34:57 -0000
@@ -147,17 +147,8 @@
 #define __RAND_MAX 0x7fffffff
 #endif
 
-
 #if defined(__CYGWIN32__) || defined(__CYGWIN__)
-#define __FILENAME_MAX__ (260 - 1 /* NUL */)
-#define _READ_WRITE_RETURN_TYPE _ssize_t
-#define __LARGE64_FILES 1
-#define __CYGWIN_USE_BIG_TYPES__ 1
-#if defined(__INSIDE_CYGWIN__) || defined(_COMPILING_NEWLIB)
-#define __IMPORT
-#else
-#define __IMPORT __declspec(dllimport)
-#endif
+#include <cygwin/config.h>
 #endif
 
 #if defined(__rtems__)
@@ -177,8 +168,7 @@
 #endif
 
 #ifndef __WCHAR_MAX__
-#if __INT_MAX__ == 32767 || defined(__CYGWIN__) || \
-    defined (_WIN32)
+#if __INT_MAX__ == 32767 || defined (_WIN32)
 #define __WCHAR_MAX__ 0xffffu
 #endif
 #endif

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]