]> git.lyx.org Git - features.git/blobdiff - acconfig.h
some changes to get fewer warnings when using strict ansi compilers
[features.git] / acconfig.h
index ddbcbac77a6be97991a74bbb10fca501a84e25bf..a897db211fafe30bf2166f390badf5a162ba61f6 100644 (file)
@@ -116,12 +116,15 @@ char * strerror(int n);
 #endif
 */
 
+/*
 #if SIZEOF_VOID_P == SIZEOF_INT
 # define PTR_AS_INT(p) int(p)
 #else
 # define PTR_AS_INT(p) long(p)
 #endif
+*/
 
+/* do we need this anymore?*/
 #ifdef BROKEN_CONST
 #include <string.h>
 #include "broken_const.h"
@@ -136,6 +139,12 @@ char * strerror(int n);
 /**/#undef inline
 #endif
 
+/* C++ always has a good enough `const' */
+#if defined const && defined __cplusplus
+/**/#undef const
+#endif
+
+
 #ifdef __EMX__
 #include "os2_defines.h"
 #endif