refactor(core): Remove support for VS2008 and older

This commit is contained in:
Julius Pfrommer 2023-04-27 23:57:56 +02:00 committed by Julius Pfrommer
parent f847747355
commit 5df92b6930
3 changed files with 4 additions and 64 deletions

View File

@ -486,11 +486,6 @@ if(UA_ENABLE_PUBSUB_MQTT)
if(WIN32) if(WIN32)
MESSAGE(WARNING "Multithreading is enabled in MQTT plugin. This feature is under development and marked as EXPERIMENTAL") MESSAGE(WARNING "Multithreading is enabled in MQTT plugin. This feature is under development and marked as EXPERIMENTAL")
endif() endif()
# Warn if run in Windows and the MSVC Version is lower than VS 12.0
if(WIN32 AND MSVC_VERSION LESS 1800)
message(WARNING "The MSVC version does not support the C99 standard. Therefore the file stdint.h will be included.")
configure_file(${PROJECT_SOURCE_DIR}/deps/ms_stdint.h "${PROJECT_BINARY_DIR}/src_generated/stdint.h" COPYONLY)
endif()
if(NOT UA_ENABLE_PUBSUB) if(NOT UA_ENABLE_PUBSUB)
message(FATAL_ERROR "Mqtt cannot be used with disabled PubSub function.") message(FATAL_ERROR "Mqtt cannot be used with disabled PubSub function.")
endif() endif()
@ -947,7 +942,6 @@ if(UA_ENABLE_HISTORIZING)
endif() endif()
set(exported_headers ${PROJECT_BINARY_DIR}/src_generated/open62541/config.h set(exported_headers ${PROJECT_BINARY_DIR}/src_generated/open62541/config.h
${PROJECT_SOURCE_DIR}/deps/ms_stdint.h
${PROJECT_SOURCE_DIR}/include/open62541/architecture_definitions.h ${PROJECT_SOURCE_DIR}/include/open62541/architecture_definitions.h
${exported_headers} ${exported_headers}
${PROJECT_BINARY_DIR}/src_generated/open62541/statuscodes.h ${PROJECT_BINARY_DIR}/src_generated/open62541/statuscodes.h

View File

@ -17,10 +17,6 @@ environment:
APPVEYOR_CACHE_ENTRY_ZIP_ARGS: -t7z -m0=lzma -mx=9 APPVEYOR_CACHE_ENTRY_ZIP_ARGS: -t7z -m0=lzma -mx=9
matrix: matrix:
- CC_NAME: Visual Studio 9 2008
CC_SHORTNAME: vs2008
GENERATOR: Visual Studio 9 2008
FORCE_CXX: ON
- CC_NAME: Visual Studio 12 2013 - CC_NAME: Visual Studio 12 2013
CC_SHORTNAME: vs2013 CC_SHORTNAME: vs2013
GENERATOR: Visual Studio 12 2013 GENERATOR: Visual Studio 12 2013

View File

@ -15,62 +15,12 @@
/** /**
* C99 Definitions * C99 Definitions
* --------------- */ * --------------- */
#include <string.h>
#include <stddef.h> #include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <inttypes.h>
#include <float.h> #include <float.h>
#include <string.h>
/* Include stdint.h and stdbool.h or workaround for older Visual Studios */
#ifdef UNDER_CE
# include "stdint.h"
#endif
#if !defined(_MSC_VER) || _MSC_VER >= 1800
# include <stdint.h>
# include <stdbool.h> /* C99 Boolean */
#else
# include "ms_stdint.h"
# if !defined(__bool_true_false_are_defined)
# define bool unsigned char
# define true 1
# define false 0
# define __bool_true_false_are_defined
# endif
#endif
/* Include inttypes.h or workaround for older Visual Studios */
#if !defined(_MSC_VER) || _MSC_VER >= 1800
# include <inttypes.h>
#else
# define __PRI_8_LENGTH_MODIFIER__ "hh"
# define __PRI_64_LENGTH_MODIFIER__ "ll"
# define PRId8 __PRI_8_LENGTH_MODIFIER__ "d"
# define PRIi8 __PRI_8_LENGTH_MODIFIER__ "i"
# define PRIo8 __PRI_8_LENGTH_MODIFIER__ "o"
# define PRIu8 __PRI_8_LENGTH_MODIFIER__ "u"
# define PRIx8 __PRI_8_LENGTH_MODIFIER__ "x"
# define PRIX8 __PRI_8_LENGTH_MODIFIER__ "X"
# define PRId16 "hd"
# define PRIi16 "hi"
# define PRIo16 "ho"
# define PRIu16 "hu"
# define PRIx16 "hx"
# define PRIX16 "hX"
# define PRId32 "ld"
# define PRIi32 "li"
# define PRIo32 "lo"
# define PRIu32 "lu"
# define PRIx32 "lx"
# define PRIX32 "lX"
# define PRId64 __PRI_64_LENGTH_MODIFIER__ "d"
# define PRIi64 __PRI_64_LENGTH_MODIFIER__ "i"
# define PRIo64 __PRI_64_LENGTH_MODIFIER__ "o"
# define PRIu64 __PRI_64_LENGTH_MODIFIER__ "u"
# define PRIx64 __PRI_64_LENGTH_MODIFIER__ "x"
# define PRIX64 __PRI_64_LENGTH_MODIFIER__ "X"
#endif
/** /**
* Inline Functions * Inline Functions