cleanup specfile for packaging
[profile/ivi/cogl.git] / config-custom.h
1 /*
2  * Cogl
3  *
4  * An object oriented GL/GLES Abstraction/Utility Layer
5  *
6  * Copyright (C) 2011 Intel Corporation.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20  */
21
22 /* The contents of this file get #included by config.h so it is
23    intended for extra configuration that needs to be included by all
24    Cogl source files. */
25
26 /* The windows headers #define 'near' and 'far' to be blank. We
27    commonly want to use these variable names for doing perspective
28    transformation so rather than having to workaround this mis-feature
29    in Windows in the code we just #undef them here. We need to do this
30    after including windows.h */
31 #ifdef _WIN32
32 #include <windows.h>
33 #undef near
34 #undef far
35 #endif /* _WIN32 */