[Tile-serving] [openstreetmap/osm2pgsql] README: 32bit systems are unsupported (#1006)

mmd notifications at github.com
Sun Dec 1 10:38:06 UTC 2019


Would it make sense to also add a compiler warning (or maybe even error)?

```C++
diff --git a/src/osm2pgsql.cpp b/src/osm2pgsql.cpp
index d048895..ad9cb49 100644
--- a/src/osm2pgsql.cpp
+++ b/src/osm2pgsql.cpp
@@ -35,6 +35,7 @@
 #include "reprojection.hpp"
 #include "util.hpp"
 
+#include <cstdint>
 #include <cstdio>
 #include <cstdlib>
 #include <ctime>
@@ -44,6 +45,10 @@
 
 #include <libpq-fe.h>
 
+#if INTPTR_MAX != INT64_MAX
+#warning osm2pgsql is only supported on 64bit systems
+#endif
+
 int main(int argc, char *argv[])
 {
     fprintf(stderr, "osm2pgsql version %s (%zu bit id space)\n\n", VERSION,
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1006#issuecomment-560089964
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20191201/c4066d10/attachment-0001.html>


More information about the Tile-serving mailing list