Skip to content

Commit

Permalink
Merge pull request #143 from barracuda156/inttypes
Browse files Browse the repository at this point in the history
timg.cc: define __STDC_FORMAT_MACROS if undefined
  • Loading branch information
hzeller authored Jan 3, 2025
2 parents 5210772 + 3be8d6e commit dbe0299
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/timg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
#include <poppler.h>
#endif

#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif

// The following is to work around clang-tidy being confused and not
// understanding that unistd.h indeed provides getopt(). So let's include
// unistd.h for correctness, and then soothe clang-tidy with decls.
Expand Down

0 comments on commit dbe0299

Please sign in to comment.