sc: filter: html: fix missing color scale conditional format
[LibreOffice.git] / external / firebird / macos-arm64.patch.0
blob12a845c57ce9923c5273612fd6fafb1b08f33c8e
1 -*- Mode: diff -*-
2 --- configure
3 +++ configure
4 @@ -2901,6 +2901,22 @@
5      RAW_DEVICES_FLG=N
6      ;;
7  
8 +  aarch64-*-darwin*)
9 +    MAKEFILE_PREFIX=darwin_arm64
10 +    MAKEFILE_POSTFIX=darwin
11 +    PLATFORM=DARWIN
12 +    INSTALL_PREFIX=darwin
14 +$as_echo "#define DARWIN 1" >>confdefs.h
16 +       LIBS="$LIBS -framework CoreFoundation"
17 +    EDITLINE_FLG=Y
18 +    SHRLIB_EXT=dylib
19 +    CPU_TYPE=arm64
20 +    EXPORT_SYMBOLS_STYLE=darwin
21 +    RAW_DEVICES_FLG=N
22 +    ;;
24    i*86-*-darwin*)
25      MAKEFILE_PREFIX=darwin_i386
26      MAKEFILE_POSTFIX=darwin
27 @@ -21344,6 +21344,7 @@
28  else
29    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30  /* end confdefs.h.  */
31 +#include <stdlib.h>
32  main () {
33    struct s {
34      char a;
35 --- src/common/common.h
36 +++ src/common/common.h
37 @@ -234,6 +234,12 @@
38  #define DARWINPPC64
39  #define FB_CPU CpuPowerPc64
40  #endif
41 +#ifdef __aarch64__
42 +// This means x86_64, but does it matter? There is no arch_arm64, arch_aarch64, arch_darwin_arm64,
43 +// or arch_darwin_aarch64 in the P_ARCH enum in src/remote/protocol.h.
44 +#define DARWIN64
45 +#define FB_CPU CpuArm64
46 +#endif
47  #define IEEE
48  #define QUADCONST(n) (n##LL)
49  #define QUADFORMAT "q"
50 --- src/jrd/license.h
51 +++ src/jrd/license.h
52 @@ -128,6 +128,9 @@
53  #if defined(ARM)
54  #define FB_PLATFORM     "UA"
55  #endif
56 +#if defined(__aarch64__)
57 +#define FB_PLATFORM     "UB"
58 +#endif
59  #endif
61  #ifdef DEV_BUILD
62 --- /dev/null
63 +++ builds/posix/prefix.darwin_arm64
64 @@ -0,0 +0,42 @@
65 +# The contents of this file are subject to the Interbase Public
66 +# License Version 1.0 (the "License"); you may not use this file
67 +# except in compliance with the License. You may obtain a copy
68 +# of the License at http://www.Inprise.com/IPL.html
70 +# Software distributed under the License is distributed on an
71 +# "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
72 +# or implied. See the License for the specific language governing
73 +# rights and limitations under the License.
75 +# The Original Code was created by Inprise Corporation
76 +# and its predecessors. Portions created by Inprise Corporation are
78 +# Copyright (C) 2000 Inprise Corporation
79 +# All Rights Reserved.
80 +# Contributor(s): ______________________________________.
81 +# Start of file prefix.darwin: $(VERSION)      @PLATFORM@
82 +# 2 Oct 2002, Nickolay Samofatov - Major Cleanup
86 +#DYLD_PRINT_ENV=1
87 +#export DYLD_PRINT_ENV
89 +#DYLD_PRINT_LIBRARIES=1
90 +#export DYLD_PRINT_LIBRARIES
92 +MACOSX_DEPLOYMENT_TARGET=11.0
93 +export MACOSX_DEPLOYMENT_TARGET
95 +PROD_FLAGS=-DDARWIN -pipe -O2 -MMD -fPIC -fno-common
96 +DEV_FLAGS=-ggdb -DDARWIN -pipe -MMD -fPIC -fno-omit-frame-pointer -fno-common -Wall -fno-optimize-sibling-calls -Wno-non-virtual-dtor
97 +CXXFLAGS:=$(CXXFLAGS) -fvisibility-inlines-hidden -fvisibility=hidden
99 +EXE_LINK_OPTIONS:= 
100 +UNDEF_PLATFORM=
102 +LINK_LIBS+=-liconv
103 +#MATHLIB=$(ROOT)/extern/libtommath/.libs/libtommath.a
104 +SO_LINK_LIBS+=-liconv
106 +include $(ROOT)/gen/darwin.defaults
107 --- src/isql/InputDevices.cpp
108 +++ src/isql/InputDevices.cpp
109 @@ -23,7 +23,7 @@
111  #include "firebird.h"
112  #if defined(DARWIN) && !defined(IOS)
113 -#if defined(i386) || defined(__x86_64__)
114 +#if defined(i386) || defined(__x86_64__) || defined(__arm64__)
115  #include <architecture/i386/io.h>
116  #else
117  #include <io.h>