CI updates

This commit is contained in:
Markus F.X.J. Oberhumer
2024-06-26 11:45:35 +02:00
parent 17cf73001c
commit 261609f706
8 changed files with 89 additions and 30 deletions
+9 -1
View File
@@ -40,8 +40,15 @@
#if defined(__CYGWIN64__) && !defined(__CYGWIN__)
#error "missing __CYGWIN__"
#endif
#if defined(__clang__) || defined(__GNUC__)
#if defined(__MINGW64__) && !defined(__MINGW32__)
#error "missing __MINGW32__"
#endif
#if defined(_WIN64) && !defined(_WIN32)
#error "missing _WIN32"
#endif
// byte order - these are pre-defined since gcc-4.6 (2011) and clang-3.2 (2012)
#if defined(__clang__) || defined(__GNUC__)
#if !defined(__ORDER_BIG_ENDIAN__) || (__ORDER_BIG_ENDIAN__ + 0 == 0)
#error "missing __ORDER_BIG_ENDIAN__"
#endif
@@ -61,6 +68,7 @@
#error "unexpected __BYTE_ORDER__"
#endif
#endif
// pic and pie
#if defined(__PIC__) && defined(__pic__)
static_assert((__PIC__) == (__pic__));
+58
View File
@@ -0,0 +1,58 @@
/* system_undefs.h -- undef system pre-defines
This file is part of the UPX executable compressor.
Copyright (C) 1996-2024 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
UPX and the UCL library are free software; you can redistribute them
and/or modify them under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
This program 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 this program; see the file COPYING.
If not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Markus F.X.J. Oberhumer
<markus@oberhumer.com>
*/
// some platform system headers may pre-define these, so undef to avoid conflicts
#undef _
#undef __
#undef ___
#undef ____
#undef _____
#undef MIPSEB
#undef MIPSEL
#undef PAGE_MASK
#undef PAGE_SIZE
#undef PPC
#undef R3000
#undef R4000
#undef SP
#undef SS
#undef WIN32
#undef WIN64
#undef WINNT
#undef dos
#undef far
#undef huge
#undef i386
#undef large
#undef linux
#undef mips
#undef near
#undef powerpc
#undef small
#undef tos
#undef unix
/* vim:set ts=4 sw=4 et: */