Skip to content
Browse files

fix compiler errors for good

include stdint.h in abstractfunctionoverwriter.h to get intptr_t
but also define __STDC_LIMIT_MACROS there to have it available
in unixfunctionoverwriter.cpp
  • Loading branch information...
1 parent 701c6ab commit dd66b610f125e5f2a51ca3a34289970fdd4cf3aa @milianw milianw committed Apr 30, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −0 hooking/abstractfunctionoverwriter.h
  2. +0 −3 hooking/unixfunctionoverwriter.cpp
View
3 hooking/abstractfunctionoverwriter.h
@@ -25,6 +25,9 @@
#include <QList>
#include <QString>
+#define __STDC_LIMIT_MACROS
+#include <stdint.h>
+
#if defined(_M_X64) || defined(__amd64) || defined(__x86_64)
#define ARCH_64
#elif defined(_M_IX86) || defined(__i386__)
View
3 hooking/unixfunctionoverwriter.cpp
@@ -23,10 +23,7 @@
#if !defined(Q_OS_WIN)
-#define __STDC_LIMIT_MACROS
-
#include <dlfcn.h>
-#include <stdint.h>
#include <inttypes.h>
#include <unistd.h>
#include <sys/mman.h>

0 comments on commit dd66b61

Please sign in to comment.
Something went wrong with that request. Please try again.