remove our stdint.h version that uses boost and force usage of system stdint.h

actorid
Bret Curtis 11 years ago
parent 5539c75ef0
commit ab224f93c9

@ -238,6 +238,14 @@ if (UNIX AND NOT APPLE)
find_package (Threads) find_package (Threads)
endif() endif()
# Look for stdint.h
include(CheckIncludeFile)
check_include_file(stdint.h HAVE_STDINT_H)
if(NOT HAVE_STDINT_H)
unset(HAVE_STDINT_H CACHE)
message(FATAL_ERROR "stdint.h was not found" )
endif()
include (CheckIncludeFileCXX) include (CheckIncludeFileCXX)
check_include_file_cxx(unordered_map HAVE_UNORDERED_MAP) check_include_file_cxx(unordered_map HAVE_UNORDERED_MAP)
if (HAVE_UNORDERED_MAP) if (HAVE_UNORDERED_MAP)

@ -3,7 +3,7 @@
#include <string> #include <string>
#include <libs/platform/stdint.h> #include <stdint.h>
namespace ESM namespace ESM
{ {

@ -5,7 +5,7 @@
#include <deque> #include <deque>
#include <map> #include <map>
#include <libs/platform/stdint.h> #include <stdint.h>
#include "../mwdialogue/journalentry.hpp" #include "../mwdialogue/journalentry.hpp"
#include "../mwdialogue/topic.hpp" #include "../mwdialogue/topic.hpp"

@ -6,7 +6,7 @@
#include "MyGUI_TextureUtility.h" #include "MyGUI_TextureUtility.h"
#include "MyGUI_FactoryManager.h" #include "MyGUI_FactoryManager.h"
#include <platform/stdint.h> #include <stdint.h>
#include <boost/function.hpp> #include <boost/function.hpp>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp> #include <boost/make_shared.hpp>

@ -5,7 +5,7 @@
#include "MyGUI_Widget.h" #include "MyGUI_Widget.h"
#include <functional> #include <functional>
#include <platform/stdint.h> #include <stdint.h>
#include <boost/function.hpp> #include <boost/function.hpp>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>

@ -4,7 +4,7 @@
#include <string> #include <string>
#include <memory> #include <memory>
#include <functional> #include <functional>
#include <platform/stdint.h> #include <stdint.h>
#include <boost/function.hpp> #include <boost/function.hpp>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>

@ -1,7 +1,7 @@
#ifndef MWGUI_MAPWINDOW_H #ifndef MWGUI_MAPWINDOW_H
#define MWGUI_MAPWINDOW_H #define MWGUI_MAPWINDOW_H
#include <libs/platform/stdint.h> #include <stdint.h>
#include "windowpinnablebase.hpp" #include "windowpinnablebase.hpp"

@ -4,7 +4,7 @@
#include <string> #include <string>
#include <map> #include <map>
#include <libs/platform/stdint.h> #include <stdint.h>
#include "locals.hpp" #include "locals.hpp"

@ -3,6 +3,8 @@
#include <iostream> #include <iostream>
#include <vector> #include <vector>
#include <stdint.h>
#include <boost/thread.hpp> #include <boost/thread.hpp>
#include "openal_output.hpp" #include "openal_output.hpp"

@ -5,7 +5,7 @@
#include <string> #include <string>
#include <map> #include <map>
#include <libs/platform/stdint.h> #include <stdint.h>
#include <components/interpreter/types.hpp> #include <components/interpreter/types.hpp>
#include <components/esm/variant.hpp> #include <components/esm/variant.hpp>

@ -24,7 +24,7 @@
#ifndef BSA_BSA_FILE_H #ifndef BSA_BSA_FILE_H
#define BSA_BSA_FILE_H #define BSA_BSA_FILE_H
#include <libs/platform/stdint.h> #include <stdint.h>
#include <libs/platform/strings.h> #include <libs/platform/strings.h>
#include <string> #include <string>
#include <vector> #include <vector>

@ -1,7 +1,7 @@
#ifndef OPENMW_ESM_DEFS_H #ifndef OPENMW_ESM_DEFS_H
#define OPENMW_ESM_DEFS_H #define OPENMW_ESM_DEFS_H
#include <libs/platform/stdint.h> #include <stdint.h>
namespace ESM namespace ESM
{ {

@ -4,7 +4,7 @@
#include <string> #include <string>
#include <cstring> #include <cstring>
#include <libs/platform/stdint.h> #include <stdint.h>
#include <libs/platform/string.h> #include <libs/platform/string.h>
namespace ESM namespace ESM

@ -1,7 +1,7 @@
#ifndef OPENMW_ESM_READER_H #ifndef OPENMW_ESM_READER_H
#define OPENMW_ESM_READER_H #define OPENMW_ESM_READER_H
#include <libs/platform/stdint.h> #include <stdint.h>
#include <libs/platform/string.h> #include <libs/platform/string.h>
#include <cassert> #include <cassert>
#include <vector> #include <vector>

@ -1,7 +1,7 @@
#ifndef OPENMW_ESM_LAND_H #ifndef OPENMW_ESM_LAND_H
#define OPENMW_ESM_LAND_H #define OPENMW_ESM_LAND_H
#include <libs/platform/stdint.h> #include <stdint.h>
#include "esmcommon.hpp" #include "esmcommon.hpp"

@ -4,7 +4,7 @@
#include <stdexcept> #include <stdexcept>
#include <cassert> #include <cassert>
#include <libs/platform/stdint.h> #include <stdint.h>
namespace { namespace {

@ -42,7 +42,7 @@
#include <boost/make_shared.hpp> #include <boost/make_shared.hpp>
#include <boost/detail/endian.hpp> #include <boost/detail/endian.hpp>
#include <libs/platform/stdint.h> #include <stdint.h>
#include "record.hpp" #include "record.hpp"
#include "niftypes.hpp" #include "niftypes.hpp"

@ -1,6 +1,8 @@
#ifndef SH_PREPROCESSOR_H #ifndef SH_PREPROCESSOR_H
#define SH_PREPROCESSOR_H #define SH_PREPROCESSOR_H
#include <stdint.h>
#include <string> #include <string>
#include <vector> #include <vector>

@ -1,21 +0,0 @@
// Wrapper for MSVC
#ifndef _STDINT_WRAPPER_H
#define _STDINT_WRAPPER_H
#if (_MSC_VER >= 1600)
#include <cstdint>
#else
#include <boost/cstdint.hpp>
// Pull the boost names into the global namespace for convenience
using boost::int32_t;
using boost::uint32_t;
using boost::int64_t;
using boost::uint64_t;
#endif
#endif
Loading…
Cancel
Save