Skip to content

Commit

Permalink
The ISO C99 standard specifies that PRIu64 must only be defined if ex…
Browse files Browse the repository at this point in the history
…plicitly requested and it was not requested. TThis is a bug in original tree
  • Loading branch information
Gijut authored and Gijut committed Jan 28, 2016
1 parent 6fd22d8 commit 8853147
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/engine/test-core/test-engine-stuff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,9 @@ get_random_gnc_numeric(int64_t deno)
numer = limit;
}
if (0 == numer) numer = 1;
/* The ISO C99 standard specifies that PRIu64 must only be
defined if explicitly requested, and !defined __cplusplus || defined __STDC_FORMAT_MACROS is wrong. */
#define PRIu64 "lu"
g_log("test.engine.suff", G_LOG_LEVEL_INFO, "New GncNumeric %" PRIu64 " / %" PRIu64 " !\n", numer, deno);
return gnc_numeric_create(numer, deno);
}
Expand Down

0 comments on commit 8853147

Please sign in to comment.