summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-07-15 11:07:16 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-07-15 11:07:16 +0200
commitb20e8feca290faafad4193580e63304921edddfc (patch)
tree8bbdb58ed92c9fe0360140176d862e9a172fe72b
parent7f675ca2544b501c4e102b06c64f7b9deb8a8832 (diff)
Add these back, removed with XChat r1516 by the GTK check cleanup
-rw-r--r--src/common/xchat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/xchat.h b/src/common/xchat.h
index 329872d0..1be33a68 100644
--- a/src/common/xchat.h
+++ b/src/common/xchat.h
@@ -586,7 +586,12 @@ struct popup
 /* CL: get a random int in the range [0..n-1]. DON'T use rand() % n, it gives terrible results. */
 #define RAND_INT(n) ((int)(rand() / (RAND_MAX + 1.0) * (n)))
 
+#ifdef WIN32
 #define xchat_filename_from_utf8 g_locale_from_utf8
 #define xchat_filename_to_utf8 g_locale_to_utf8
+#else
+#define xchat_filename_from_utf8 g_filename_from_utf8
+#define xchat_filename_to_utf8 g_filename_to_utf8
+#endif
 
 #endif