v2.5.5 release
[git-osx-installer.git] / src / build-prefix.h
blob9f96d435009ea87b6fc8e137db347c66e1c736bd
1 /*
3 build-prefix.h - build prefix header for building git
4 Copyright (C) 2014,2015 Kyle J. McKay. All rights reserved.
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #include <AvailabilityMacros.h>
23 #ifndef MAC_OS_X_VERSION_10_4
24 #define MAC_OS_X_VERSION_10_4 1040
25 #endif
26 #ifndef MAC_OS_X_VERSION_10_5
27 #define MAC_OS_X_VERSION_10_5 1050
28 #endif
29 #undef OLD_ICONV
30 #undef XDL_FAST_HASH
31 #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
32 #define OLD_ICONV 1
33 #endif
34 #ifdef __x86_64__
35 /* XDL_FAST_HASH has some extremely bad worst case performance issues */
36 /* See http://thread.gmane.org/gmane.comp.version-control.git/261638 */
37 /* #define XDL_FAST_HASH 1 */
38 #endif
39 #undef GETTEXT_H
40 #define GETTEXT_H
41 #undef _
42 #define _(s) gettext(s)
43 #undef N_
44 /* N_(x) MUST NOT have any parenthesis around expansion before v2.3.0! */
45 #define N_(s) (s)
46 #undef Q_
47 #define Q_(s,p,n) ngettext((s),(p),(n))
48 #undef ngettext
49 extern void git_setup_gettext(void);
50 extern const char *gettext(const char *msgid);
51 extern const char *ngettext(const char *msgid, const char *plu, unsigned long n);
52 extern int gettext_width(const char *s);
53 const char *get_preferred_languages(void);