diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-05-09 21:27:40 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-05-09 21:27:40 +0000 |
commit | d3b450f3a1ed7e00860ec3785252d1cec22e8f0d (patch) | |
tree | af9ac3ef9dc31d05a47dc30a3b546156f74ae64c | |
parent | 8e67b974a9097dbb6098ad50795c16ee3af3b4f2 (diff) | |
download | newlib-d3b450f3a1ed7e00860ec3785252d1cec22e8f0d.zip newlib-d3b450f3a1ed7e00860ec3785252d1cec22e8f0d.tar.gz newlib-d3b450f3a1ed7e00860ec3785252d1cec22e8f0d.tar.bz2 |
* include/cygwin/config.h: New file.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/include/cygwin/config.h | 39 |
2 files changed, 43 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b9dc47f..2bf5e5e 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2003-05-09 Corinna Vinschen <corinna@vinschen.de> + + * include/cygwin/config.h: New file. + 2003-05-09 Christopher Faylor <cgf@redhat.com> * cygthread.cc (cygthread::detach): Prioritize waiting for I/O diff --git a/winsup/cygwin/include/cygwin/config.h b/winsup/cygwin/include/cygwin/config.h new file mode 100644 index 0000000..4bafa3c --- /dev/null +++ b/winsup/cygwin/include/cygwin/config.h @@ -0,0 +1,39 @@ +/* cygwin/config.h header file for Cygwin. + + This wraps Cygwin configuration setting which were in newlib's + sys/config.h before. THis way we can manaage our configuration + setting without bothering newlib. + + Copyright 2003 Red Hat, Inc. + Written by C. Vinschen. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file "CYGWIN_LICENSE" for +details. */ + +#ifndef _CYGWIN_CONFIG_H +#ifdef __cplusplus +extern "C" { +#endif +#define _CYGWIN_CONFIG_H + +#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 + +#ifndef __WCHAR_MAX__ +#define __WCHAR_MAX__ 0xffffu +#endif + +#ifdef __cplusplus +} +#endif +#endif /* _CYGWIN_CONFIG_H */ |