ref: 681919da8eaf89213d2243001d8d9069a3d02522
parent: cd4a615c43b2f40e594502daa60eb28376f52073
parent: 8c663ffe664985c558a713adc5c16bcf920222d4
author: Ethan Hugg <[email protected]>
date: Wed Jul 30 02:53:30 EDT 2014
Merge pull request #1238 from mstorsjo/fix-msvc-tests Fix building the tests with MSVC
--- a/codec/processing/src/common/typedef.h
+++ b/codec/processing/src/common/typedef.h
@@ -50,29 +50,7 @@
#define WELSVP_NAMESPACE_BEGIN namespace nsWelsVP {
#define WELSVP_NAMESPACE_END }
-#include <stddef.h>
-#ifndef _MSC_VER
-#include <stdint.h>
-#endif
-
-WELSVP_NAMESPACE_BEGIN
-
-#if defined(_MSC_VER)
-
-typedef signed char int8_t ;
-typedef unsigned char uint8_t ;
-typedef short int16_t ;
-typedef unsigned short uint16_t ;
-typedef int int32_t ;
-typedef unsigned int uint32_t ;
-typedef __int64 int64_t ;
-typedef unsigned __int64 uint64_t ;
-#if _MSC_VER < 1700
-#define inline __inline
-#endif
-
-#endif
-
-WELSVP_NAMESPACE_END
+// Get the stdint type definitions from typedefs.h in the common lib
+#include "typedefs.h"
#endif
--- a/test/encoder/EncUT_EncoderExt.cpp
+++ b/test/encoder/EncUT_EncoderExt.cpp
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include "codec_api.h"
#include "codec_app_def.h"
+#include "test_stdint.h"
//TODO: consider using BaseEncoderTest class from #include "../BaseEncoderTest.h"
class EncoderInterfaceTest : public ::testing::Test {