libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] How to proper fix error: "ISO C90 does not support ‘long


From: silvioprog
Subject: [libmicrohttpd] How to proper fix error: "ISO C90 does not support ‘long long’"?
Date: Sat, 24 Mar 2018 00:30:43 -0300

Christian,

I'm using the following compilers:

1) clang version 5.0.1-svn325091-1~exp1 (branches/release_50)

2) arm-linux-androideabi-gcc (Linaro GCC 4.7-2014.04-1~dev) 4.7.4

3) gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609

clang and arm-linux-androideabi-gcc compiles MHD fine, but gcc raises the following error:

[snip]
/libmicrohttpd/include/microhttpd.h:277:46: error: ISO C90 does not support ‘long long’ [-Werror=long-long]
 #define MHD_UNSIGNED_LONG_LONG unsigned long long
                                              ^
/libmicrohttpd/include/microhttpd.h:2348:4: note: in expansion of macro ‘MHD_UNSIGNED_LONG_LONG’
    MHD_UNSIGNED_LONG_LONG *timeout);
    ^
cc1: all warnings being treated as errors

I fixed it using the attached patch, but I'm not sure if it is the proper way to fix it.

WDYT about this change?

--
Silvio Clécio

Attachment: 0001-Fix-building-in-GCC.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]