Explorar el Código

build 0.1.4 release on arch

Thomas Buck hace 6 meses
padre
commit
ea7dbce8b9
Se han modificado 3 ficheros con 3 adiciones y 2 borrados
  1. 1
    1
      CMakeLists.txt
  2. 1
    1
      include/Log.h
  3. 1
    0
      src/utils/Folder.cpp

+ 1
- 1
CMakeLists.txt Ver fichero

@@ -53,7 +53,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
53 53
 endif()
54 54
 
55 55
 # Flags for all builds
56
-set (OpenRaider_CXX_FLAGS "${OpenRaider_CXX_FLAGS} ${WARNINGS}")
56
+set (OpenRaider_CXX_FLAGS "${OpenRaider_CXX_FLAGS} ${WARNINGS} -DGL_GLEXT_PROTOTYPES -DGLM_ENABLE_EXPERIMENTAL")
57 57
 
58 58
 # Flags for Debug build
59 59
 set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -DDEBUG")

+ 1
- 1
include/Log.h Ver fichero

@@ -64,7 +64,7 @@ class LogLevel {
64 64
     template<typename T>
65 65
     LogLevel& operator<< (const T t) {
66 66
         printBuffer << t;
67
-        if (printBuffer.str().back() == Log::endl) {
67
+        if ((printBuffer.str().length() > 0) && (printBuffer.str().back() == Log::endl)) {
68 68
             std::string s = printBuffer.str().substr(0, printBuffer.str().length() - 1);
69 69
             printBuffer.str("");
70 70
             Log::wholeLog.emplace_back(s, level);

+ 1
- 0
src/utils/Folder.cpp Ver fichero

@@ -7,6 +7,7 @@
7 7
 
8 8
 #include <algorithm>
9 9
 #include <iostream>
10
+#include <cstring>
10 11
 
11 12
 #include "global.h"
12 13
 #include <Log.h>

Loading…
Cancelar
Guardar