-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gdal: define __STDC_FORMAT_MACROS if needed (#21457)
ancient MacOSX SDKs require this definition explicitly added. (The requirement was removed in MacOSX SDK 10.7 and newer.)
- Loading branch information
1 parent
2bdcebe
commit b4dafeb
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
gis/gdal/files/0001-sqlite_rtree_bulk_load.c-define-__STDC_FORMAT_MACROS.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From b0e8b43f019ce12a3234036a7267d1a7dbd7d318 Mon Sep 17 00:00:00 2001 | ||
From: barracuda156 <vital.had@gmail.com> | ||
Date: Sun, 19 Nov 2023 13:07:23 +0800 | ||
Subject: [PATCH] sqlite_rtree_bulk_load.c: define __STDC_FORMAT_MACROS to | ||
unbreak build on platforms which need it | ||
|
||
--- | ||
.../sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c | ||
index b19d91808b..598d5047bd 100644 | ||
--- ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c | ||
+++ ogr/ogrsf_frmts/sqlite/sqlite_rtree_bulk_load/sqlite_rtree_bulk_load.c | ||
@@ -26,6 +26,10 @@ | ||
* DEALINGS IN THE SOFTWARE. | ||
****************************************************************************/ | ||
|
||
+#ifndef __STDC_FORMAT_MACROS | ||
+#define __STDC_FORMAT_MACROS | ||
+#endif | ||
+ | ||
#include "sqlite_rtree_bulk_load.h" | ||
|
||
#include <assert.h> |