Fix compilation on mingw

This commit is contained in:
Moritz Bunkus 2011-11-05 15:06:57 +01:00
parent 8298aec4f8
commit 1589171e13
5 changed files with 15 additions and 7 deletions

View File

@ -69,9 +69,17 @@ wxU(const wxString &s) {
#define wxMB(s) ((const char *)(s).mb_str(wxConvUTF8))
/* i18n stuff */
#if !defined Z
# define Z(s) wxU(Y(s))
# define NZ(s_singular, s_plural, count) wxU(NY(s))
#if defined(HAVE_LIBINTL_H)
# include <libintl.h>
# if !defined Z
# define Z(s) wxU(gettext(s))
# define NZ(s_singular, s_plural, count) wxU(ngettext(s_singular, s_plural, count))
# endif
#else /* HAVE_LIBINTL_H */
# if !defined Y
# define Z(s) (s)
# define NZ(s_singular, s_plural, count) (s_singular)
# endif
#endif
// Use wxComboBox on non-Windows builds with wxWidgets 2.8.0 and newer

View File

@ -11,7 +11,7 @@
Written by Moritz Bunkus <moritz@bunkus.org>.
*/
#include "common/common_pch.h"
#include "common/os.h"
#include <wx/wx.h>
#include <wx/statline.h>

View File

@ -11,7 +11,7 @@
Written by Moritz Bunkus <moritz@bunkus.org>.
*/
#include "common/common_pch.h"
#include "common/os.h"
#include <wx/wx.h>
#include <wx/statline.h>

View File

@ -11,7 +11,7 @@
Written by Moritz Bunkus <moritz@bunkus.org>.
*/
#include "common/common_pch.h"
#include "common/os.h"
#include <wx/wx.h>
#include <wx/config.h>

View File

@ -11,7 +11,7 @@
Written by Moritz Bunkus <moritz@bunkus.org>.
*/
#include "common/common_pch.h"
#include "common/os.h"
#if defined(HAVE_CURL_EASY_H)