summaryrefslogtreecommitdiff
path: root/plugins/dfnet/dfnet.h
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-11-18 04:46:20 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-11-18 04:46:20 +0000
commita4f36118dc3781fcee3e633d2db99127de919c68 (patch)
treeaca2b0c5e96609da798acb5b2bae696ee45444fd /plugins/dfnet/dfnet.h
parent8a299835645bef784c8c468def91031e2e5e4400 (diff)
downloadpcsxr-a4f36118dc3781fcee3e633d2db99127de919c68.tar.gz
DFNet for Mac OS X.
Note that DFNet is disabled by default, and there are still a few rough edges. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72400 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfnet/dfnet.h')
-rw-r--r--plugins/dfnet/dfnet.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/dfnet/dfnet.h b/plugins/dfnet/dfnet.h
index d83cb3bb..bcf4b56e 100644
--- a/plugins/dfnet/dfnet.h
+++ b/plugins/dfnet/dfnet.h
@@ -23,6 +23,28 @@
#include <locale.h>
#define _(x) gettext(x)
#define N_(x) (x)
+#elif defined(__MACOSX__)
+#ifdef __cplusplus
+extern "C" {
+#endif
+#ifdef PCSXRCORE
+extern char* Pcsxr_locale_text(char* toloc);
+#define _(String) Pcsxr_locale_text(String)
+#define N_(String) String
+#else
+#ifndef PCSXRPLUG
+#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
+extern char* PLUGLOC(char* toloc);
+#define _(String) PLUGLOC(String)
+#define N_(String) String
+#endif
+#ifdef __cplusplus
+}
+#endif
#else
#define _(x) (x)
#define N_(x) (x)