diff --git a/utils/tex2rtf/src/tex2rtf.cpp b/utils/tex2rtf/src/tex2rtf.cpp index ffed38806b..88d23ff9c8 100644 --- a/utils/tex2rtf/src/tex2rtf.cpp +++ b/utils/tex2rtf/src/tex2rtf.cpp @@ -105,7 +105,11 @@ void ShowOptions(void); #ifdef NO_GUI -extern char *wxBuffer; // we must init it, otherwise tex2rtf will crash +#if wxUSE_GUI || !defined(__UNIX__) +// wxBase for Unix does not have wxBuffer +extern +#endif +char *wxBuffer; // we must init it, otherwise tex2rtf will crash int main(int argc, char **argv) #else