diff options
author | devzero2000 <devzero2000> | 2011-09-05 13:20:54 +0000 |
---|---|---|
committer | devzero2000 <devzero2000> | 2011-09-05 13:20:54 +0000 |
commit | 7bfc5be6d045d8e8fb869308a768a5b683de68a6 (patch) | |
tree | 3bc56967cfd3df4dcd8a3ec660ff9ec95af90ac1 | |
parent | 127a925390d2df065e48c3bd6365c4e7755338a7 (diff) | |
download | libpopt-7bfc5be6d045d8e8fb869308a768a5b683de68a6.tar.gz |
redo commit 8396019 againrpm-5_4_3-release
get rid of LONG_LONG format specifier and inline
it instead
-rw-r--r-- | popthelp.c | 2 | ||||
-rw-r--r-- | system.h | 5 | ||||
-rw-r--r-- | test1.c | 2 |
3 files changed, 2 insertions, 7 deletions
@@ -266,7 +266,7 @@ assert(le); /* XXX can't happen */ break; case POPT_ARG_LONGLONG: #if defined(_MSC_VER) || defined(__MINGW32__) - le += sprintf(le, "%" LONG_LONG_FORMAT, arg.longlongp[0]); + le += sprintf(le, "%I64d", arg.longlongp[0]); #else le += sprintf(le, "%lld", arg.longlongp[0]); #endif @@ -88,10 +88,6 @@ char *alloca (); #define S_ISGID 00020000 #define S_ISVTX 00010000 -/* I haven't discovered a better way to work around these format - specifier problems */ -#define LONG_LONG_FORMAT "I64d" - /* CHECKME */ #define S_IWGRP 00000020 @@ -147,7 +143,6 @@ static inline int setegid(UNUSED(int x)) { return 1; } #else -#define LONG_LONG_FORMAT "lld" #endif /* defined(_MSC_VER) || defined(__MINGW32__) */ @@ -335,7 +335,7 @@ int main(int argc, const char ** argv) fprintf(stdout, " aLong: %ld", aLong); if (aLongLong != bLongLong) #if defined(_MSC_VER) || defined(__MINGW32__) - fprintf(stdout, " aLongLong: %" LONG_LONG_FORMAT, aLongLong); + fprintf(stdout, " aLongLong: %I64d", aLongLong); #else fprintf(stdout, " aLongLong: %lld", aLongLong); #endif |