Fix build problem found testing certain combinations of options
authorKen Raeburn <raeburn@mit.edu>
Wed, 9 Feb 2005 00:14:57 +0000 (00:14 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 9 Feb 2005 00:14:57 +0000 (00:14 +0000)
* k5-platform.h (PROGRAM_EXITING) [__GNUC__ && !_WIN32 &&
CONSTRUCTOR_ATTR_WORKS && !DELAY_INITIALIZER]: Define as zero.

ticket: 2916
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17089 dc483132-0cff-0310-8789-dd5450dbe970

src/include/ChangeLog
src/include/k5-platform.h

index d6587b55931c7e0634b25cf12f52d3d30a2addd3..d4c0cded038736157ed2ca60453167664cf63606 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-08  Ken Raeburn  <raeburn@mit.edu>
+
+       * k5-platform.h (PROGRAM_EXITING) [__GNUC__ && !_WIN32 &&
+       CONSTRUCTOR_ATTR_WORKS]: Define as zero.
+
 2005-02-02  Ken Raeburn  <raeburn@mit.edu>
 
        * configure.in: Put #ifndef/#define/#endif wrapper into
index e0793f6290e2ba2e64e756b2dc717896cead4fdf..5c634bfc4100202782f7fa54bae8d347917a1347 100644 (file)
@@ -232,6 +232,8 @@ typedef struct { int error; unsigned char did_run; } k5_init_t;
         : (abort(),0))
 # define INITIALIZER_RAN(NAME) (JOIN__2(NAME,ran).did_run == 3 && JOIN__2(NAME, ran).error == 0)
 
+# define PROGRAM_EXITING()             (0)
+
 #elif defined(USE_LINKER_INIT_OPTION) || defined(_WIN32)
 
 /* Run initializer at load time, via linker magic, or in the