Browse Source

Rename Window files to prevent LSP name conflict

Kajetan Johannes Hammerle 11 months ago
parent
commit
5b2014eabf
4 changed files with 7 additions and 7 deletions
  1. 3 3
      CMakeLists.txt
  2. 2 2
      include/core/WindowManager.h
  3. 1 1
      src/WindowManager.c
  4. 1 1
      test/modules/WindowManagerTests.c

+ 3 - 3
CMakeLists.txt

@@ -8,14 +8,14 @@ set(CMAKE_C_STANDARD 23)
 set(SRC
     "src/Image.c"
     "src/Network.c"
-    "src/Window.c"
+    "src/WindowManager.c"
 )
 
 set(SRC_TESTS
     "test/Main.c"
     "test/modules/ImageTests.c"
     "test/modules/NetworkTests.c"
-    "test/modules/WindowTests.c"
+    "test/modules/WindowManagerTests.c"
 )
 
 if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
@@ -77,7 +77,7 @@ target_sources(gaming_core PUBLIC
     FILES 
         ./include/core/Image.h
         ./include/core/Network.h
-        ./include/core/Window.h
+        ./include/core/WindowManager.h
 )
 install(TARGETS gaming_core FILE_SET HEADERS)
 

+ 2 - 2
include/core/Window.h → include/core/WindowManager.h

@@ -1,5 +1,5 @@
-#ifndef CORE_WINDOW_H
-#define CORE_WINDOW_H
+#ifndef CORE_WINDOW_MANAGER_H
+#define CORE_WINDOW_MANAGER_H
 
 #include <core/Vector.h>
 

+ 1 - 1
src/Window.c → src/WindowManager.c

@@ -1,5 +1,5 @@
 #define IMPORT_CORE
-#include "core/Window.h"
+#include "core/WindowManager.h"
 
 #include <GLFW/glfw3.h>
 #include <core/HashMap.h>

+ 1 - 1
test/modules/WindowTests.c → test/modules/WindowManagerTests.c

@@ -4,7 +4,7 @@
 #include <stdio.h>
 
 #include "../Tests.h"
-#include "core/Window.h"
+#include "core/WindowManager.h"
 
 static int ticks = 2000;
 static Button closeButton = 0;