diff --git a/CMakeLists.txt b/CMakeLists.txt index c8c5db3..226efcf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,9 +5,6 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${saland_SOURCE_DIR}/src/cmake") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -std=c++11 -g") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -g") -#The following is used by libb64. -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBUFFERSIZE=16777216") - find_package(Boost COMPONENTS program_options REQUIRED) #Setup SDL2 diff --git a/src/Libs/include/b64/decode.h b/src/Libs/include/b64/decode.h index 12b16ea..e9019f3 100644 --- a/src/Libs/include/b64/decode.h +++ b/src/Libs/include/b64/decode.h @@ -8,6 +8,7 @@ For details, see http://sourceforge.net/projects/libb64 #ifndef BASE64_DECODE_H #define BASE64_DECODE_H +#include #include namespace base64 @@ -22,7 +23,7 @@ namespace base64 base64_decodestate _state; int _buffersize; - decoder(int buffersize_in = BUFFERSIZE) + decoder(int buffersize_in = BUFSIZ) : _buffersize(buffersize_in) {} diff --git a/src/Libs/include/b64/encode.h b/src/Libs/include/b64/encode.h index 5d807d9..e7a7035 100644 --- a/src/Libs/include/b64/encode.h +++ b/src/Libs/include/b64/encode.h @@ -8,6 +8,7 @@ For details, see http://sourceforge.net/projects/libb64 #ifndef BASE64_ENCODE_H #define BASE64_ENCODE_H +#include #include namespace base64 @@ -22,7 +23,7 @@ namespace base64 base64_encodestate _state; int _buffersize; - encoder(int buffersize_in = BUFFERSIZE) + encoder(int buffersize_in = BUFSIZ) : _buffersize(buffersize_in) {}