Skip to content

Commit

Permalink
Merge branch 'macos-fixes'
Browse files Browse the repository at this point in the history
  • Loading branch information
swesterfeld committed Nov 4, 2020
2 parents c9c3b7b + 3f69aa2 commit 13d5142
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ COMMON_SRC = utils.hh utils.cc convcode.hh convcode.cc random.hh random.cc wavda
wmget.cc wmadd.cc
COMMON_LIBS = $(SNDFILE_LIBS) $(FFTW_LIBS) $(LIBGCRYPT_LIBS) $(LIBMPG123_LIBS) $(FFMPEG_LIBS)

AM_CXXFLAGS = $(SNDFILE_CFLAGS) $(FFTW_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBMPG123_CFLAGS) $(FFMPEG_CFLAGS)

audiowmark_SOURCES = audiowmark.cc $(COMMON_SRC)
audiowmark_LDFLAGS = $(COMMON_LIBS)

Expand Down
2 changes: 2 additions & 0 deletions src/rawconverter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#include "rawconverter.hh"

#include <array>

#include <math.h>

using std::vector;
Expand Down
1 change: 1 addition & 0 deletions src/rawinputstream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <assert.h>
#include <string.h>
#include <errno.h>

using std::string;
using std::vector;
Expand Down
1 change: 1 addition & 0 deletions src/rawoutputstream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <assert.h>
#include <string.h>
#include <errno.h>

using std::string;
using std::vector;
Expand Down
6 changes: 4 additions & 2 deletions src/testrandom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include "utils.hh"
#include "random.hh"

#include <inttypes.h>

using std::vector;
using std::string;

Expand All @@ -28,7 +30,7 @@ main (int argc, char **argv)
for (size_t i = 0; i < 20; i++)
{
uint64_t x = rng();
printf ("%016lx\n", x);
printf ("%016" PRIx64 "\n", x);
}

uint64_t s = 0;
Expand All @@ -39,7 +41,7 @@ main (int argc, char **argv)
s += rng();
}
double t_end = get_time();
printf ("s=%016lx\n\n", s);
printf ("s=%016" PRIx64 "\n\n", s);

printf ("%f Mvalues/sec\n", runs / (t_end - t_start) / 1000000);
}

0 comments on commit 13d5142

Please sign in to comment.