gstein 02/05/23 19:35:02
Modified: include apr_date.h
Log:
Fix two nits that I saw while looking at this file:
* the C++ wrapper should not wrap any #include of other files. we
don't want to impose our namespace stuff on those files.
* add extra parens around the APR_DATE_BAD value to ensure that it
binds properly in all uses.
Revision Changes Path
1.8 +7 -4 apr-util/include/apr_date.h
Index: apr_date.h
===================================================================
RCS file: /home/cvs/apr-util/include/apr_date.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- apr_date.h 23 May 2002 21:04:25 -0000 1.7
+++ apr_date.h 24 May 2002 02:35:02 -0000 1.8
@@ -58,13 +58,11 @@
#ifndef APR_DATE_H
#define APR_DATE_H
+
/**
* @file apr_date.h
* @brief APR-UTIL date routines
*/
-#ifdef __cplusplus
-extern "C" {
-#endif
/**
* @defgroup APR_Util_Date Date routines
@@ -79,7 +77,12 @@
#include "apu.h"
#include "apr_time.h"
-#define APR_DATE_BAD (apr_time_t)0
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#define APR_DATE_BAD ((apr_time_t)0)
/**
* Compare a string to a mask