libpurple/win32/libc_interface.c

changeset 39373
47667f5c6696
parent 39020
2f397c683f6c
child 40095
330279f77e0d
equal deleted inserted replaced
39372:43e3da39daf6 39373:47667f5c6696
19 * 19 *
20 */ 20 */
21 21
22 #include <config.h> 22 #include <config.h>
23 23
24 #include <glib/gi18n-lib.h>
24 #include <winsock2.h> 25 #include <winsock2.h>
25 #include <ws2tcpip.h> 26 #include <ws2tcpip.h>
26 #include <io.h> 27 #include <io.h>
27 #include <stdlib.h> 28 #include <stdlib.h>
28 #include <stdio.h> 29 #include <stdio.h>
34 #include "debug.h" 35 #include "debug.h"
35 #include "libc_internal.h" 36 #include "libc_internal.h"
36 #include "util.h" 37 #include "util.h"
37 #include <glib/gstdio.h> 38 #include <glib/gstdio.h>
38 #include "util.h" 39 #include "util.h"
39
40 /** This is redefined here because we can't include internal.h */
41 #ifdef ENABLE_NLS
42 # include <locale.h>
43 # include <libintl.h>
44 # define _(String) ((const char *)dgettext(PACKAGE, String))
45 # ifdef gettext_noop
46 # define N_(String) gettext_noop (String)
47 # else
48 # define N_(String) (String)
49 # endif
50 #else
51 # include <locale.h>
52 # define N_(String) (String)
53 # ifndef _
54 # define _(String) ((const char *)String)
55 # endif
56 # define ngettext(Singular, Plural, Number) ((Number == 1) ? ((const char *)Singular) : ((const char *)Plural))
57 # define dngettext(Domain, Singular, Plural, Number) ((Number == 1) ? ((const char *)Singular) : ((const char *)Plural))
58 #endif
59 40
60 #ifndef S_ISDIR 41 #ifndef S_ISDIR
61 # define S_ISDIR(m) (((m)&S_IFDIR)==S_IFDIR) 42 # define S_ISDIR(m) (((m)&S_IFDIR)==S_IFDIR)
62 #endif 43 #endif
63 44

mercurial