mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
move to CXX Flags to prevent warning by compiling c code, adding include for unix
This commit is contained in:
parent
28c2830d75
commit
e5c3b3978a
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0)
|
|||||||
project(Gradido_LoginServer C CXX)
|
project(Gradido_LoginServer C CXX)
|
||||||
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin" )
|
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin" )
|
||||||
|
|
||||||
add_definitions("-std=c++11")
|
SET ( CMAKE_CXX_FLAGS "-std=c++17" )
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
"dependencies"
|
"dependencies"
|
||||||
|
|||||||
@ -3,6 +3,9 @@
|
|||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include "sodium.h"
|
#include "sodium.h"
|
||||||
|
|
||||||
|
// needed for memset in linux
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
namespace DataTypeConverter
|
namespace DataTypeConverter
|
||||||
{
|
{
|
||||||
NumberParseState strToInt(const std::string& input, int& result)
|
NumberParseState strToInt(const std::string& input, int& result)
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include "../SingletonManager/MemoryManager.h"
|
#include "../SingletonManager/MemoryManager.h"
|
||||||
|
|
||||||
|
|
||||||
namespace DataTypeConverter {
|
namespace DataTypeConverter {
|
||||||
|
|
||||||
enum NumberParseState
|
enum NumberParseState
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user