Commit b73adb92 authored by Stefan Westerfeld's avatar Stefan Westerfeld

Define __STDC_FORMAT_MACROS before includine cinttypes for (see #61).

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent 4b069257
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <array> #include <array>
#include <regex> #include <regex>
#include <inttypes.h>
#include <string.h> #include <string.h>
#include "utils.hh" #include "utils.hh"
#include "mpegts.hh" #include "mpegts.hh"
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include <regex> #include <regex>
#include <assert.h> #include <assert.h>
#include <cinttypes>
using std::string; using std::string;
using std::vector; using std::vector;
......
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
#include "utils.hh" #include "utils.hh"
#include "random.hh" #include "random.hh"
#include <inttypes.h>
using std::vector; using std::vector;
using std::string; using std::string;
......
...@@ -21,6 +21,12 @@ ...@@ -21,6 +21,12 @@
#include <vector> #include <vector>
#include <string> #include <string>
#ifndef __STDC_FORMAT_MACROS
// some compilers/platforms (i.e. very old macOS) need this for macros like PRId64 (#61)
#define __STDC_FORMAT_MACROS
#endif
#include <cinttypes>
std::vector<int> bit_str_to_vec (const std::string& bits); std::vector<int> bit_str_to_vec (const std::string& bits);
std::string bit_vec_to_str (const std::vector<int>& bit_vec); std::string bit_vec_to_str (const std::vector<int>& bit_vec);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment