Imported Upstream version 2.10.0
[platform/upstream/fontconfig.git] / config-fixups.h
1 /*
2  * Copyright 息 2006 Keith Packard
3  * Copyright 息 2010 Behdad Esfahbod
4  *
5  * Permission to use, copy, modify, distribute, and sell this software and its
6  * documentation for any purpose is hereby granted without fee, provided that
7  * the above copyright notice appear in all copies and that both that
8  * copyright notice and this permission notice appear in supporting
9  * documentation, and that the name of the author(s) not be used in
10  * advertising or publicity pertaining to distribution of the software without
11  * specific, written prior permission.  The authors make no
12  * representations about the suitability of this software for any purpose.  It
13  * is provided "as is" without express or implied warranty.
14  *
15  * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
17  * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
20  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21  * PERFORMANCE OF THIS SOFTWARE.
22  */
23 #ifndef _CONFIG_FIXUPS_H_
24 #define _CONFIG_FIXUPS_H_
25
26 /* This header file is supposed to be included in config.h */
27
28 /* just a hack to build the fat binaries:
29  * https://bugs.freedesktop.org/show_bug.cgi?id=20208
30  */
31 #ifdef __APPLE__
32 # include <machine/endian.h>
33 # undef SIZEOF_VOID_P
34 # undef ALIGNOF_DOUBLE
35 # ifdef __LP64__
36 #  define SIZEOF_VOID_P 8
37 #  define ALIGNOF_DOUBLE 8
38 # else
39 #  define SIZEOF_VOID_P 4
40 #  define ALIGNOF_DOUBLE 4
41 # endif
42 #endif
43
44 #endif /* _CONFIG_FIXUPS_H_ */