Author: sebor
Date: Fri Nov 11 15:07:36 2005
New Revision: 332675
URL: http://svn.apache.org/viewcvs?rev=332675&view=rev
Log:
2005-11-11 Martin Sebor <[EMAIL PROTECTED]>
* Avoided the use of the #ifdef/#ifndef syntax with non-config
macros to prevent the configuration infrastructure from treating
them as potential dependencies.
Modified:
incubator/stdcxx/trunk/etc/config/src/UNISTD_DECL.cpp
Modified: incubator/stdcxx/trunk/etc/config/src/UNISTD_DECL.cpp
URL:
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/src/UNISTD_DECL.cpp?rev=332675&r1=332674&r2=332675&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/UNISTD_DECL.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/UNISTD_DECL.cpp Fri Nov 11 15:07:36
2005
@@ -23,7 +23,7 @@
# define ssize_t long
#endif
-#ifndef STDIN_FILENO
+#if !defined (STDIN_FILENO)
# define STDIN_FILENO 0
# define STDOUT_FILENO 1
# define STDERR_FILENO 2
@@ -47,7 +47,7 @@
MACRO (O_WRONLY),
MACRO (O_RDWR),
-#ifdef O_ACCMODE
+#if defined (O_ACCMODE)
// fcntl(2) file access mask
MACRO (O_ACCMODE),
#endif // O_ACCMODE
@@ -62,10 +62,10 @@
MACRO (SEEK_CUR),
MACRO (SEEK_END)
-#ifdef F_GETFL
+#if defined (F_GETFL)
// fcntl(2) cmd argument
, MACRO (F_GETFL)
-#endif
+#endif // F_GETFL
};
for (unsigned i = 0; i != sizeof macros / sizeof *macros; ++i)
@@ -118,7 +118,7 @@
int main ()
{
-#ifndef _RWSTD_USE_CONFIG
+#if !defined (_RWSTD_USE_CONFIG)
printf ("/**/\n#undef _RWSTD_UNISTD_DECL\n");