#endif
#ifndef WX_PRECOMP
+ #include "wx/log.h"
+ #include "wx/intl.h"
#endif //WX_PRECOMP
#include "wx/apptrait.h"
+#include "wx/unix/execute.h"
// for waitpid()
#include <sys/types.h>
int major, minor;
char name[256];
- if ( sscanf(WXWIN_OS_DESCRIPTION, "%s %d.%d", name, &major, &minor) != 3 )
+ if ( sscanf(WXWIN_OS_DESCRIPTION, "%.255s %d.%d", name, &major, &minor) != 3 )
{
// unreckognized uname string format
major =
minor = -1;
}
- if ( majorVsn )
- *majorVsn = major;
- if ( minorVsn )
- *minorVsn = minor;
+ if ( verMaj )
+ *verMaj = major;
+ if ( verMin )
+ *verMin = minor;
return wxUNIX;
}