xine-lib: xine-lib-1.2.13/include/config.h Source File

xine-lib 1.2.13-20230125hg15249

config.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2007-2018 the xine project
3 *
4 * This file is part of xine, a free video player.
5 *
6 * xine is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU General Public Licence as published by the Free
8 * Software Foundation; either version 2 of the Licence, or (at your option)
9 * any later version.
10 *
11 * xine is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 * FOR A PARTICULAR PURPOSE. See the GNU General Public Licence for more
14 * details.
15 *
16 * You should have received a copy of the GNU General Public Licence along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19 *
20 */
21
22#include "configure.h"
23
24/* Ugly build time sanity guard.
25 * ./configure might mistake X32 mode as plain 64bit,
26 * but compiler itself sets __ILP32__ when in x32.
27 * Even worse: clang sets this in 32 mode as well,
28 * so also test __i386__ here.
29 */
30#ifdef ARCH_X86
31# if defined(__ILP32__) && !defined(__i386) && !defined(__i386__) && !defined(ARCH_X86_X32)
32# ifdef ARCH_WARN
33# warning "configure did not detect ARCH_X86_X32!"
34# endif
35# undef ARCH_X86_64
36# define ARCH_X86_X32
37# undef ARCH_X86_32
38# elif defined(ARCH_X86_64) && defined(ARCH_X86_X32)
39# ifdef ARCH_WARN
40# warning "configure did set both ARCH_X86_64 and ARCH_X86_X32!"
41# endif
42# undef ARCH_X86_64
43# undef ARCH_X86_32
44# endif
45#endif
46
47#include "os_internal.h"
48
49
configure.h