X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=acconfig.h;h=a9df3d55f091bd7c7e9db357cb5ffae54518c096;hb=046b5d824c622204e90fffa690d43008fadaaa2a;hp=a897db211fafe30bf2166f390badf5a162ba61f6;hpb=35584afc1162dec2cf9fff79305e95cb3b75aefb;p=lyx.git diff --git a/acconfig.h b/acconfig.h index a897db211f..a9df3d55f0 100644 --- a/acconfig.h +++ b/acconfig.h @@ -17,25 +17,9 @@ @TOP@ -/* Define to work around a bug with const handling in gcc 2.7.[012] */ -#undef BROKEN_CONST - -/* Define on SunOS 4 and SCO, were some functions are missing from the headers */ -#undef BROKEN_HEADERS - -/* Define if you want debugging turned on as default. */ -#undef DEBUG_AS_DEFAULT - -/* Define if you are building a development version of LyX */ -#undef DEVEL_VERSION - /* Define to 1 if NLS is requested. */ #undef ENABLE_NLS -/* Define to nothing if your compiler does not understand the - `explicit' directive */ -#undef explicit - /* define this to the location of forms.h to be used with #include, e.g. */ #undef FORMS_H_LOCATION @@ -52,30 +36,17 @@ /* Define as 1 if you have the stpcopy function */ #undef HAVE_STPCPY -/* -/* Define if the bool type is known to your compiler */ -#undef HAVE_bool -*/ - -/* Define to the name of the distribution. */ -#undef PACKAGE - -/* You might want to define TWO_COLOR_ICONS if you want to spare - your colormap. This will use monochrome icons instead of colored - ones. */ -#undef TWO_COLOR_ICONS - -/* Define to the version of the distribution. */ -#undef VERSION - -/* Define this if you want to see the #warning directives put here and - there by the developpers to get attention */ -#undef WITH_WARNINGS - /* define this to the location of xpm.h to be used with #include, e.g. */ #undef XPM_H_LOCATION +/* here are the defines for what Toolkit to use (default is XForms) */ +#undef KDEGUI + +#undef GTKGUI + +#undef HAVE_LIBSM + @BOTTOM@ /************************************************************ @@ -87,12 +58,6 @@ /**/#undef __STRICT_ANSI__ #endif -#ifdef HAVE_MEMSET -#define BZERO(a,b) memset(a,0,b) -#else -#define BZERO(a,b) bzero(a,b) -#endif - #ifndef HAVE_STRCHR #define strchr(a,b) index(a,b) #endif @@ -108,28 +73,6 @@ extern "C" char * strerror(int n); #endif -/* -#ifndef HAVE_bool -#define bool int -#define true 1 -#define false 0 -#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 -#include "broken_const.h" -#endif - #ifdef BROKEN_HEADERS #include "broken_headers.h" #endif @@ -144,6 +87,16 @@ char * strerror(int n); /**/#undef const #endif +/* Check on the run if we are using exceptions during this compilation.*/ +#if defined(__sgi) || defined(__GNUC__) +# ifdef __EXCEPTIONS +# define USING_EXCEPTIONS +# endif +#endif + +#if defined(__USLC__) || defined(__SUNPRO_CC) || defined(__COMO__) || defined(__ICL) +# define USING_EXCEPTIONS +#endif #ifdef __EMX__ #include "os2_defines.h"