Commit graph

115 commits

Author SHA1 Message Date
Edouard Charvet
8541dace7d add API function to free memory dynamically allocated by function ZDHelperSimpleLookupString 2022-04-11 08:53:26 +02:00
Bertold Van den Bergh
795b78da41
Merge pull request #34 from osievert/otto/macos
build: fix builder compilation on macOS
2022-01-27 23:34:36 +01:00
Otto Sievert
1f2b964626 build: fix builder compilation on macOS
- assert() is already defined, so rename this assert() to assert_()
- std::tie is a c++11 feature; on macOS, g++ maps to clang and clang
    defaults to c++old, so explicitly declare the c++ version
- these changes should be benign on other platforms (e.g., Linux)
2022-01-27 06:34:45 -08:00
Bertold Van den Bergh
f4aef3b543
Merge pull request #30 from nicholasbishop/bishop-fix-url
Fix broken download of ne.zip
2021-09-07 14:22:51 +02:00
Nicholas Bishop
37a2f204b1 Fix broken download of ne.zip
Partially reverts 6a1d2a6165. naciscdn.org
is down and judging from other projects' github issues this seems to be
common.
2021-09-06 16:46:46 -04:00
Bertold Van den Bergh
a000827b9b
Merge pull request #29 from wbarnard/memory-errors
Memory Allocation Error Handling
2021-03-08 18:05:08 +01:00
Will Barnard
0fed129ada Handle memory allocation errors 2021-02-24 15:10:26 +08:00
Bertold Van den Bergh
690b7cbc7c
Merge pull request #28 from wbarnard/baremetal
Baremetal
2021-02-18 13:00:15 +01:00
will
c60ac66207 Explicitly define long long integer literal types 2021-02-18 15:18:36 +08:00
will
c4b608dcac Ensure C90 compliance 2021-02-18 15:18:36 +08:00
will
880f563d17 Support non-Posix toolchain 2021-02-18 15:18:30 +08:00
Bertold Van den Bergh
6a1d2a6165 Update download URL for NE countries database + TZ path 2020-11-19 17:31:58 +01:00
Bertold Van den Bergh
403ff12e7d Use latest version of database 2020-11-19 16:59:41 +01:00
Bertold Van den Bergh
05567e3675
Merge pull request #26 from hannob/fix_mmap_error
properly check error for mmap
2020-05-25 20:43:31 +02:00
Hanno Böck
d583247235
properly check error for mmap 2020-05-20 14:55:17 +02:00
Bertold Van den Bergh
ff37a28524 Do apt update during build 2020-04-28 22:17:55 +02:00
Bertold Van den Bergh
5c5e4f5638 Update to 2020a version of database 2020-04-28 22:04:04 +02:00
Bertold Van den Bergh
d15e28b40c
Merge pull request #20 from nicholasbishop/bishop-makedb-err
makedb.sh: fail if a command exits non-zero
2020-01-26 00:18:04 +01:00
Bertold Van den Bergh
785e4cc589
Merge pull request #21 from nicholasbishop/bishop-builder-readme
Add builder instructions to the database README.md
2020-01-26 00:17:36 +01:00
Bertold Van den Bergh
51c7eb1b7e
Merge pull request #22 from nicholasbishop/bishop-add-demo-makefile
Add a Makefile and more documentation for the demo
2020-01-26 00:17:05 +01:00
Bertold Van den Bergh
e9d4ae396b
Merge pull request #23 from nicholasbishop/bishop-add-gitignore
Add a gitignore file
2020-01-26 00:16:27 +01:00
Bertold Van den Bergh
f1afbf7243
Merge pull request #24 from nicholasbishop/bishop-add-stddef
Include stddef.h for size_t
2020-01-26 00:15:50 +01:00
Nicholas Bishop
b8400b71b9 Include stddef.h for size_t 2020-01-24 17:00:10 -05:00
Nicholas Bishop
529cd09924 Add a gitignore file 2020-01-24 16:31:52 -05:00
Nicholas Bishop
4b7c83e4fb Add a Makefile and more documentation for the demo
This adds a simple `make demo` target that builds the demo with
`gcc`. The readme is also updated to mention the make target and give
an example of how to run it. The example should make clearer what is
to be passed in as the `dbname` parameter; initially I tried `db.zip`
and passing in the `out_v1` directory path before realizing that each
of the database files is separate and that the full path should be
given.
2020-01-24 16:27:31 -05:00
Nicholas Bishop
14d9777f00 Add builder instructions to the database README.md 2020-01-24 16:17:18 -05:00
Nicholas Bishop
4b122f5817 makedb.sh: fail if a command exits non-zero
In particular this better handles the case where the `g++` command
fails (e.g. due to not having shapelib installed). The script should
not continue if that command fails.
2020-01-24 15:58:56 -05:00
Bertold Van den Bergh
2f8dcc91f1 Repair bad commit 2020-01-15 22:11:54 +01:00
Bertold Van den Bergh
5cdc5c9722 Add warning message for endpoint switch 2020-01-15 22:03:12 +01:00
Bertold Van den Bergh
44fc1ab2ee Fix edge case for points on border 2019-12-13 17:50:39 +01:00
Bertold Van den Bergh
2f1bfdebe2 Update makefile and add margin to border detection to cover rounding 2019-12-13 16:15:25 +00:00
Bertold Van den Bergh
f52c8f4135 Add ocean regions to database 2019-12-13 16:12:44 +00:00
Bertold Van den Bergh
abba171e96 Build on AWS Linux so C++ library does not need to be packaged 2019-12-03 17:01:36 +01:00
Bertold Van den Bergh
6db9dca021 Only set safezone if a result was found, otherwise it is meaningless. 2019-11-20 19:10:14 +01:00
Bertold Van den Bergh
6ab3a273a4 Readd safezone to web interface 2019-11-20 16:59:49 +01:00
Bertold Van den Bergh
57f36c2956
Merge pull request #19 from flederwiesel/master
Version suffixes being used for non-Windows library.
2019-11-19 18:07:49 +01:00
flederwiesel
95cfc5e39b Add version suffix to library for non-Windows build. 2019-11-19 12:19:56 +01:00
flederwiesel
8a2852bb86 Fix error: "-fPIC ignored for target (all code is position independent)" for Windows build. 2019-11-19 12:19:49 +01:00
flederwiesel
2ee7048144 Add GNU hash to library for non-Windows build. 2019-11-19 12:18:18 +01:00
flederwiesel
f936f63aa0 Use install's --strip option. 2019-11-19 10:53:25 +01:00
Bertold Van den Bergh
ceca53b478 Use v0 database as it is faster but bigger 2019-11-18 00:00:45 +01:00
Bertold Van den Bergh
c439c70599 Add license file 2019-11-17 23:48:10 +01:00
Bertold Van den Bergh
def759af1d Add build badge 2019-11-11 11:58:30 +01:00
Bertold Van den Bergh
cff7b191f7 Initialize point to zero 2019-11-11 11:53:49 +01:00
Bertold Van den Bergh
a214a3bd13
Merge pull request #17 from flederwiesel/master
Add support for cross-compile and debug build
2019-11-11 11:51:37 +01:00
flederwiesel
dc2311d87d Compile with debug info and do not strip if DEBUG is set (not evaluating its value...). 2019-11-11 10:10:51 +01:00
flederwiesel
1c16caf956 Add DESTDIR as well as target directory specifiers as is common with autotools. Use install program instead of cp. Execute ldconfig only if DESTDIR is not set -- assuming DESTDIR is set for cross compile only. 2019-11-11 10:05:55 +01:00
flederwiesel
dafa4c6358 Add libzoneinfo.{dll,so} and zonedetect.o to '.gitignore'. 2019-11-11 10:04:36 +01:00
flederwiesel
5bd300c407 Make phony targets .PHONY 2019-11-11 09:59:47 +01:00
Bertold Van den Bergh
db66d4475a Correct readme 2019-11-10 21:29:28 +01:00