summaryrefslogtreecommitdiff
path: root/plugins/dfcdrom
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dfcdrom')
-rw-r--r--plugins/dfcdrom/cdr.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/dfcdrom/cdr.h b/plugins/dfcdrom/cdr.h
index d568972c..66847b36 100644
--- a/plugins/dfcdrom/cdr.h
+++ b/plugins/dfcdrom/cdr.h
@@ -31,7 +31,7 @@
#include <locale.h>
#define _(x) gettext(x)
#define N_(x) (x)
-#elif defined(__MACOSX__)
+#elif defined(_MACOSX)
#ifdef __cplusplus
extern "C" {
#endif
@@ -44,8 +44,11 @@ extern char* Pcsxr_locale_text(char* toloc);
#warning please define the plug being built to use Mac OS X localization!
#define _(msgid) msgid
#define N_(msgid) msgid
-#endif
-#define PLUGLOC PCSXRPLUG##_locale_text
+#else
+//Kludge to get the preprocessor to accept PCSXRPLUG as a variable.
+#define PLUGLOC_x(x,y) x ## y
+#define PLUGLOC_y(x,y) PLUGLOC_x(x,y)
+#define PLUGLOC PLUGLOC_y(PCSXRPLUG,_locale_text)
extern char* PLUGLOC(char* toloc);
#define _(String) PLUGLOC(String)
#define N_(String) String
@@ -53,6 +56,7 @@ extern char* PLUGLOC(char* toloc);
#ifdef __cplusplus
}
#endif
+#endif
#else
#define _(x) (x)
#define N_(x) (x)