X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=main.h;h=5fac1ef13fce531d9ee693849c643b8b77a16ccd;hp=e0b2193e103cd9f0cf03b596bd3cd43b8858afe8;hb=f851ca0d9e22673b7cc0a7c2f539c9d51b9b77f8;hpb=57defecea870c265179b69f811416c7a4659b0ee diff --git a/main.h b/main.h index e0b2193..5fac1ef 100644 --- a/main.h +++ b/main.h @@ -125,12 +125,14 @@ void debug(const char *file, const char *function, int line, const char *prefix, #define BUDETECT ; #endif -#ifdef __cplusplus -extern "C" { -#endif -#include -#ifdef __cplusplus -} +#ifdef WITH_MISDN + #ifdef __cplusplus + extern "C" { + #endif + #include + #ifdef __cplusplus + } + #endif #endif #include "macro.h" #include "select.h" @@ -145,10 +147,12 @@ extern "C" { #include "callerid.h" #include "route.h" #include "port.h" +#ifdef WITH_MISDN #include "mISDN.h" #include "dss1.h" #include "loop.h" #include "remote.h" +#endif #if defined WITH_GSM_BS || defined WITH_GSM_MS #include "gsm.h" #endif