diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /gfx/cairo/win32-inline-cpp-keyword.patch | |
parent | Initial commit. (diff) | |
download | firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | gfx/cairo/win32-inline-cpp-keyword.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gfx/cairo/win32-inline-cpp-keyword.patch b/gfx/cairo/win32-inline-cpp-keyword.patch new file mode 100644 index 0000000000..4b6f542d79 --- /dev/null +++ b/gfx/cairo/win32-inline-cpp-keyword.patch @@ -0,0 +1,24 @@ +diff --git a/gfx/cairo/cairo/src/cairo-compiler-private.h b/gfx/cairo/cairo/src/cairo-compiler-private.h +--- a/gfx/cairo/cairo/src/cairo-compiler-private.h ++++ b/gfx/cairo/cairo/src/cairo-compiler-private.h +@@ -205,18 +205,20 @@ + #if (defined(__WIN32__) && !defined(__WINE__)) || defined(_MSC_VER) + #define snprintf _snprintf + #define popen _popen + #define pclose _pclose + #define hypot _hypot + #endif + + #ifdef _MSC_VER ++#ifndef __cplusplus + #undef inline + #define inline __inline ++#endif + + /* there are currently linkage problems that arise when trying to include intrin.h in c++: + * D:\sdks\v7.0\include\winnt.h(3674) : error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed + * so avoid defining ffs in c++ code for now */ + #ifndef __cplusplus + /* Add a definition of ffs */ + #include <intrin.h> + #pragma intrinsic(_BitScanForward) |