LiVES  2.4.1-svn
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
support.h
Go to the documentation of this file.
1 // support.h
2 // LiVES
3 // portions of this file were auto-generated by glade, the remainder is (c) G. Finch (salsaman) 2002 - 2015
4 
5 // released under the GNU GPL 3 or later
6 // see file ../COPYING or www.gnu.org for licensing details
7 
8 #ifndef HAS_LIVES_SUPPORT_H
9 #define HAS_LIVES_SUPPORT_H
10 
11 #ifndef NO_GTK
12 #include <gtk/gtk.h>
13 #define lives_strdup(a) g_strdup(a)
14 #define lives_free(a) g_free(a)
15 #define lives_locale_to_utf8(a,b,c,d,e) g_locale_to_utf8(a,b,c,d,e)
16 #endif
17 
18 /*
19  * Standard gettext macros.
20  */
21 #ifdef ENABLE_NLS
22 
23 char *trString;
24 char *translate(const char *String);
25 char *translate_with_plural(const char *String, const char *StringPlural, unsigned long int n);
26 
27 # include <libintl.h>
28 # undef _
29 # define _(String) (translate(String))
30 # define P_(String,StringPlural,n) (translate_with_plural(String,StringPlural,n))
31 # ifdef gettext_noop
32 # define N_(String) gettext_noop (String)
33 # else
34 # define N_(String) (String)
35 # endif
36 #else
37 # define textdomain(String) (String)
38 # define gettext(String) (String)
39 # define dgettext(Domain,Message) (Message)
40 # define dngettext(Domain,Message,MsgPlur,n) (Message)
41 # define dcgettext(Domain,Message,Type) (Message)
42 # define bindtextdomain(Domain,Directory) (Domain)
43 # define _(String) (String)
44 # define N_(String) (String)
45 # define P_(String,StringPlural,n) (String)
46 #endif
47 
48 #endif
49