]> git.lyx.org Git - lyx.git/blobdiff - acconfig.h
removed a warning from screen and added CFLAGS in lyx.spec.in.
[lyx.git] / acconfig.h
index 0dce1c82e404080dbd118277f238ea998da5a641..a897db211fafe30bf2166f390badf5a162ba61f6 100644 (file)
@@ -76,7 +76,6 @@
   e.g. <xpm.h> */
 #undef XPM_H_LOCATION
 
-
 @BOTTOM@ 
 
 /************************************************************ 
@@ -117,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"
@@ -137,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