]> git.jsancho.org Git - lugaru.git/commitdiff
Convert C-header includes to C++ variants in C++ files
authorNeal Gompa <ngompa13@gmail.com>
Sun, 11 Dec 2016 18:10:56 +0000 (13:10 -0500)
committerNeal Gompa <ngompa13@gmail.com>
Sun, 11 Dec 2016 18:23:55 +0000 (13:23 -0500)
Source/Audio/openal_wrapper.cpp
Source/Graphic/Models.hpp
Source/MacCompatibility.cpp
Source/Math/Random.hpp
Source/Utils/ImageIO.hpp

index bcc5d731a155ce9fc3421ef681cb5194751fc6cc..90b49d70c0a654665c0bb1077ba93a3163973ee3 100644 (file)
@@ -24,9 +24,9 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #include "Game.hpp"
 #include "Math/Quaternions.hpp"
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
 
 extern float slomofreq;
 
index 621a9afad39de9ac364c864f5e6c5c5c407af21a..27f3c7da62adb39a2800845048d7e0f8789a9c51 100644 (file)
@@ -27,9 +27,9 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #include "Math/Quaternions.hpp"
 #include "Utils/binio.h"
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
 #include <vector>
 
 //
index ac0e63cfdd664a5961d370347eacb4068c7c1b81..65a4c5ff78de9fc0c740cae66b4a0581e10e78e9 100644 (file)
@@ -20,11 +20,11 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 
 #include "MacCompatibility.hpp"
 
-#include <errno.h>
-#include <time.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cerrno>
+#include <ctime>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
 
 #ifdef WIN32
 #include <windows.h>
index 430023c207349b8cc2b2c8378d5242e07333d9e3..f4b66239859f67442bc2e83d7f904be3ee74048e 100644 (file)
@@ -21,7 +21,7 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #ifndef _RANDOM_HPP_
 #define _RANDOM_HPP_
 
-#include <stdlib.h>
+#include <cstdlib>
 
 static inline short Random()
 {
index 6b43badd5dfea3ca38c99fdc124a62cb8c0b91df..18a891e4884e5c9acddf4bcf4e5a32cb865855f5 100644 (file)
@@ -25,9 +25,9 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #pragma once
 #endif
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
 
 #ifdef WIN32
 #define WIN32_LEAN_AND_MEAN