coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
516 stars 258 forks source link

ARM: should use PRIu64 for uint64_t #145

Closed nzamps closed 8 years ago

nzamps commented 8 years ago

I think this is the best way.

gbaligh commented 8 years ago

The ISO C99 standard specifies that these macros must only be defined if explicitly requested.

#define __STDC_FORMAT_MACROS
#include <inttypes.h>

... now PRIu64 will work
sevan commented 8 years ago

@nzamps what is your development environment on ARM?

nzamps commented 8 years ago

One of our environments is Freescale IMX6

sevan commented 8 years ago

cool, what OS/Flavour are you running?

nzamps commented 8 years ago

We're using a fairly vanilla Linux...pretty much OpenWRT without all of its patches, musl libc etc...