-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #320 from maxmind/horgh/posix
Do not set feature test macro in public header
- Loading branch information
Showing
12 changed files
with
38 additions
and
22 deletions.
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
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
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
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
#ifndef _POSIX_C_SOURCE | ||
#define _POSIX_C_SOURCE 200809L | ||
#endif | ||
|
||
#ifdef HAVE_CONFIG_H | ||
#include <config.h> | ||
#endif | ||
|
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 |
---|---|---|
|
@@ -851,6 +851,11 @@ int main(int argc, char **argv) | |
} | ||
``` | ||
# REQUIREMENTS | ||
libmaxminddb requires a minimum of POSIX.1-2001 support. If not specified | ||
at compilation time, it defaults to requesting POSIX.1-2008 support. | ||
# THREAD SAFETY | ||
This library is thread safe when compiled and linked with a thread-safe | ||
|
@@ -878,7 +883,7 @@ Rolsky ([email protected]). | |
# COPYRIGHT AND LICENSE | ||
Copyright 2013-2022 MaxMind, Inc. | ||
Copyright 2013-2023 MaxMind, Inc. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
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 |
---|---|---|
|
@@ -84,7 +84,7 @@ Rolsky ([email protected]). | |
|
||
# COPYRIGHT AND LICENSE | ||
|
||
Copyright 2013-2022 MaxMind, Inc. | ||
Copyright 2013-2023 MaxMind, Inc. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
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
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
#ifndef _POSIX_C_SOURCE | ||
#define _POSIX_C_SOURCE 200809L | ||
#endif | ||
|
||
#include "data-pool.h" | ||
#include "maxminddb.h" | ||
|
||
|
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
#ifndef _POSIX_C_SOURCE | ||
#define _POSIX_C_SOURCE 200809L | ||
#endif | ||
|
||
#if HAVE_CONFIG_H | ||
#include <config.h> | ||
#endif | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#define _XOPEN_SOURCE 700 | ||
|
||
#include "maxminddb_test_helper.h" | ||
|
||
#ifdef HAVE_OPEN_MEMSTREAM | ||
|
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
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