Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define SSIZE_MAX conditionally? #338

Closed
voegelas opened this issue Jan 9, 2024 · 1 comment · Fixed by #339
Closed

Define SSIZE_MAX conditionally? #338

voegelas opened this issue Jan 9, 2024 · 1 comment · Fixed by #339

Comments

@voegelas
Copy link

voegelas commented Jan 9, 2024

I get the following warning if libmaxminddb is built with the C compiler from Strawberry Perl.

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -O2 -g -g -fms-extensions -MT maxminddb.lo -MD -MP -MF .deps/maxminddb.Tpo -c maxminddb.c -o maxminddb.o
maxminddb.c:26: warning: "SSIZE_MAX" redefined
 #define SSIZE_MAX INTPTR_MAX
 
In file included from c:/strawberry/c/lib/gcc/x86_64-w64-mingw32/8.3.0/include-fixed/limits.h:194,
                 from c:/strawberry/c/lib/gcc/x86_64-w64-mingw32/8.3.0/include-fixed/syslimits.h:7,
                 from c:/strawberry/c/lib/gcc/x86_64-w64-mingw32/8.3.0/include-fixed/limits.h:34,
                 from c:/strawberry/c/x86_64-w64-mingw32/include/stdlib.h:10,
                 [...]
                 from c:/strawberry/c/x86_64-w64-mingw32/include/windows.h:69,
                 from c:/strawberry/c/x86_64-w64-mingw32/include/winsock2.h:23,
                 from ../include/maxminddb.h:16,
                 from data-pool.h:4,
                 from maxminddb.c:8:
c:/strawberry/c/x86_64-w64-mingw32/include/limits.h:84: note: this is the location of the previous definition
 #define SSIZE_MAX _I64_MAX
@oschwald
Copy link
Member

Thanks for the report. 1.9.1 was released with a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants