X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=wtkexcept.h;h=f55fe6c8b90b1ed341eb3ad0715bc6d4de392f8f;hb=8a62513a814901c984042683c701ce2f2f715d7b;hp=806a7f019b1ecf519c44c8ad53eb35ac4cfe8225;hpb=15b643cd13d2d996fad1c093871b723551f79441;p=mingw%2Fwtklite.git diff --git a/wtkexcept.h b/wtkexcept.h index 806a7f0..f55fe6c 100644 --- a/wtkexcept.h +++ b/wtkexcept.h @@ -10,7 +10,7 @@ * $Id$ * * This header file declares the exception class WTK::runtime_error. - * It is implicitly included when including wtkplus.h, but may also be + * It is implicitly included when including wtklite.h, but may also be * explicitly included by any application which wishes to use the WTK * exception class, without the rest of the WTK C++ class framework. * @@ -46,6 +46,13 @@ */ #define WTKEXCEPT_H 1 +/* This header file is primarily intended to be used only for C++. However, + * configure scripts may try to compile it as C, when checking availability; + * thus, we ignore C++ specific content when compiling as C, to ensure that + * configure doesn't choke in such cases. + */ +#ifdef __cplusplus + #include namespace WTK @@ -81,4 +88,5 @@ namespace WTK }; } +#endif /* __cplusplus */ #endif /* ! WTKEXCEPT_H: $RCSfile$: end of file */