Files
@ r27443:1150c64644d0
Branch filter:
Location: cpp/openttd-patchpack/source/src/os/macosx/osx_stdafx.h - annotation
r27443:1150c64644d0
3.6 KiB
text/x-c
Fix: Check max member count in squirrel classes (#10883)
Manual cherry-pick from https://github.com/albertodemichelis/squirrel/commit/23a0620658714b996d20da3d4dd1a0dcf9b0bd98
Manual cherry-pick from https://github.com/albertodemichelis/squirrel/commit/23a0620658714b996d20da3d4dd1a0dcf9b0bd98
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r12768:980ae0491352 r9111:983de9c5a848 r9111:983de9c5a848 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r20605:fab457c4027e r22468:cebb9c5679d1 r22468:cebb9c5679d1 r22468:cebb9c5679d1 r22468:cebb9c5679d1 r22468:cebb9c5679d1 r22468:cebb9c5679d1 r22468:cebb9c5679d1 r24149:f30a56adc0d5 r24149:f30a56adc0d5 r24149:f30a56adc0d5 r24149:f30a56adc0d5 r22468:cebb9c5679d1 r22468:cebb9c5679d1 r22468:cebb9c5679d1 r22468:cebb9c5679d1 r25719:14932b129f4d r25719:14932b129f4d r25719:14932b129f4d r25719:14932b129f4d r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r25984:e5fd5e0b5e49 r23838:bfeaabaa7b1d r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r20605:fab457c4027e r22779:91258f0e49f5 r22779:91258f0e49f5 r22779:91258f0e49f5 r20605:fab457c4027e r22782:44a0895f2e10 r22782:44a0895f2e10 r22782:44a0895f2e10 r22782:44a0895f2e10 r12387:de3949de7769 r12387:de3949de7769 r12387:de3949de7769 r13189:ab2ccc525850 r13189:ab2ccc525850 r20869:92aca6db67f4 r13189:ab2ccc525850 r13189:ab2ccc525850 r13189:ab2ccc525850 r11526:ee46e584d4c5 r25577:385ff5be874e r25577:385ff5be874e r11526:ee46e584d4c5 r11526:ee46e584d4c5 r12386:d4d6ee913899 r12386:d4d6ee913899 r12386:d4d6ee913899 r12386:d4d6ee913899 r18589:8ea5c6919bb5 r18589:8ea5c6919bb5 r20459:def33b094293 r12386:d4d6ee913899 r5475:3f5cd13d1b63 r18589:8ea5c6919bb5 r11526:ee46e584d4c5 r12386:d4d6ee913899 r12386:d4d6ee913899 r12386:d4d6ee913899 r18502:8d90141a718c r18589:8ea5c6919bb5 r20459:def33b094293 r12386:d4d6ee913899 r11363:6906c490a00e r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r12386:d4d6ee913899 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r21585:c96bdc9bd57c r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r20628:966de2c14d27 r21585:c96bdc9bd57c r20628:966de2c14d27 r20628:966de2c14d27 r20628:966de2c14d27 r20628:966de2c14d27 r20628:966de2c14d27 r20628:966de2c14d27 r20465:2e3ff3291a72 r20465:2e3ff3291a72 r20465:2e3ff3291a72 r20465:2e3ff3291a72 r20465:2e3ff3291a72 r5475:3f5cd13d1b63 | /*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file osx_stdafx.h OSX is different on some places. */
#ifndef MACOS_STDAFX_H
#define MACOS_STDAFX_H
#include <AvailabilityMacros.h>
/* We assume if these macros are defined, the SDK is also at least this version or later. */
#ifdef MAC_OS_X_VERSION_10_7
#define HAVE_OSX_107_SDK
#endif
#ifdef MAC_OS_X_VERSION_10_9
#define HAVE_OSX_109_SDK
#endif
#ifdef MAC_OS_X_VERSION_10_11
#define HAVE_OSX_1011_SDK
#endif
#ifdef MAC_OS_X_VERSION_10_12
#define HAVE_OSX_1012_SDK
#endif
#ifdef MAC_OS_X_VERSION_10_15
#define HAVE_OSX_1015_SDK
#endif
/* It would seem that to ensure backward compatibility we have to ensure that we have defined MAC_OS_X_VERSION_10_x everywhere */
#ifndef MAC_OS_X_VERSION_10_3
#define MAC_OS_X_VERSION_10_3 1030
#endif
#ifndef MAC_OS_X_VERSION_10_4
#define MAC_OS_X_VERSION_10_4 1040
#endif
#ifndef MAC_OS_X_VERSION_10_5
#define MAC_OS_X_VERSION_10_5 1050
#endif
#ifndef MAC_OS_X_VERSION_10_6
#define MAC_OS_X_VERSION_10_6 1060
#endif
#ifndef MAC_OS_X_VERSION_10_7
#define MAC_OS_X_VERSION_10_7 1070
#endif
#ifndef MAC_OS_X_VERSION_10_8
#define MAC_OS_X_VERSION_10_8 1080
#endif
#ifndef MAC_OS_X_VERSION_10_9
#define MAC_OS_X_VERSION_10_9 1090
#endif
#ifndef MAC_OS_X_VERSION_10_10
#define MAC_OS_X_VERSION_10_10 101000
#endif
#ifndef MAC_OS_X_VERSION_10_11
#define MAC_OS_X_VERSION_10_11 101100
#endif
#define __STDC_LIMIT_MACROS
#include <stdint.h>
/* Some gcc versions include assert.h via this header. As this would interfere
* with our own assert redefinition, include this header first. */
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
# include <debug/debug.h>
#endif
/* Check for mismatching 'architectures' */
#if !defined(STRGEN) && !defined(SETTINGSGEN) && ((defined(__LP64__) && !defined(POINTER_IS_64BIT)) || (!defined(__LP64__) && defined(POINTER_IS_64BIT)))
# error "Compiling 64 bits without POINTER_IS_64BIT set! (or vice versa)"
#endif
/* Name conflict */
#define Rect OTTDRect
#define Point OTTDPoint
#define WindowClass OTTDWindowClass
#define ScriptOrder OTTDScriptOrder
#define Palette OTTDPalette
#define GlyphID OTTDGlyphID
#include <CoreServices/CoreServices.h>
#include <ApplicationServices/ApplicationServices.h>
#undef Rect
#undef Point
#undef WindowClass
#undef ScriptOrder
#undef Palette
#undef GlyphID
/* remove the variables that CoreServices defines, but we define ourselves too */
#undef bool
#undef false
#undef true
/* Name conflict */
#define GetTime OTTD_GetTime
#define SL_ERROR OSX_SL_ERROR
/* NSInteger and NSUInteger are part of 10.5 and higher. */
#ifndef NSInteger
#ifdef __LP64__
typedef long NSInteger;
typedef unsigned long NSUInteger;
#else
typedef int NSInteger;
typedef unsigned int NSUInteger;
#endif /* __LP64__ */
#endif /* NSInteger */
#ifndef CGFLOAT_DEFINED
#ifdef __LP64__
typedef double CGFloat;
#else
typedef float CGFloat;
#endif /* __LP64__ */
#endif /* CGFLOAT_DEFINED */
/* OS X SDK versions >= 10.5 have a non-const iconv. */
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
# define HAVE_NON_CONST_ICONV
#endif
#endif /* MACOS_STDAFX_H */
|