mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
[gpu] Fix M_PI for MinGW cross-compilation
Add _USE_MATH_DEFINES before <cmath> includes on Windows. hb-gpu.exe now cross-compiles successfully with MinGW. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
67c8529825
commit
5aaef7d43a
2 files changed
+7
No files matched your search
@@ -3,6 +3,10 @@
|
||||
* Copyright 2026 Behdad Esfahbod. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#ifdef _WIN32
|
||||
#define _USE_MATH_DEFINES
|
||||
#endif
|
||||
|
||||
#include "demo-view.h"
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
#ifndef MATRIX4X4_HH
|
||||
#define MATRIX4X4_HH
|
||||
|
||||
#ifdef _WIN32
|
||||
#define _USE_MATH_DEFINES
|
||||
#endif
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
|
||||
|
||||
Reference in new issue
Block a user