Debian Codegraph @

third_party/etc2comp/EtcLib/Etc/EtcConfig.h

raw
1 /*
2 * Copyright 2015 The Etc2Comp Authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #pragma once
18
19 #ifdef _WIN32
20 #define ETC_WINDOWS (1)
21 #else
22 #define ETC_WINDOWS (0)
23 #endif
24
25 #if __APPLE__
26 #define ETC_OSX (1)
27 #else
28 #define ETC_OSX (0)
29 #endif
30
31 #if __unix__
32 #define ETC_UNIX (1)
33 #else
34 #define ETC_UNIX (0)
35 #endif
36
37
38 // short names for common types
39 #include <stdint.h>
40 typedef int8_t i8;
41 typedef int16_t i16;
42 typedef int32_t i32;
43 typedef int64_t i64;
44
45 typedef uint8_t u8;
46 typedef uint16_t u16;
47 typedef uint32_t u32;
48 typedef uint64_t u64;
49
50 typedef float f32;
51 typedef double f64;
52
53 // Keep asserts enabled in release builds during development
54 #undef NDEBUG
55
56 // 0=disable. stb_image can be used if you need to compress
57 //other image formats like jpg
58 #define USE_STB_IMAGE_LOAD 0
59
60 #if ETC_WINDOWS
61 #include <SDKDDKVer.h>
62 #define _CRT_SECURE_NO_WARNINGS (1)
63 #include <tchar.h>
64 #endif
65
66 #include <stdio.h>
67