Daniele Bartolini 2 anni fa
parent
commit
d40578d060
2 ha cambiato i file con 12 aggiunte e 12 eliminazioni
  1. 6 6
      src/device/main_linux.cpp
  2. 6 6
      src/device/main_windows.cpp

+ 6 - 6
src/device/main_linux.cpp

@@ -940,23 +940,23 @@ bool next_event(OsEvent &ev)
 	return s_linux_device->_events.pop(ev);
 	return s_linux_device->_events.pop(ev);
 }
 }
 
 
-} // namespace crown
-
 struct InitGlobals
 struct InitGlobals
 {
 {
 	InitGlobals()
 	InitGlobals()
 	{
 	{
-		crown::memory_globals::init();
-		crown::guid_globals::init();
+		memory_globals::init();
+		guid_globals::init();
 	}
 	}
 
 
 	~InitGlobals()
 	~InitGlobals()
 	{
 	{
-		crown::guid_globals::shutdown();
-		crown::memory_globals::shutdown();
+		guid_globals::shutdown();
+		memory_globals::shutdown();
 	}
 	}
 };
 };
 
 
+} // namespace crown
+
 int main(int argc, char **argv)
 int main(int argc, char **argv)
 {
 {
 	using namespace crown;
 	using namespace crown;

+ 6 - 6
src/device/main_windows.cpp

@@ -799,23 +799,23 @@ bool next_event(OsEvent &ev)
 	return s_windows_device->_events.pop(ev);
 	return s_windows_device->_events.pop(ev);
 }
 }
 
 
-} // namespace crown
-
 struct InitGlobals
 struct InitGlobals
 {
 {
 	InitGlobals()
 	InitGlobals()
 	{
 	{
-		crown::memory_globals::init();
-		crown::guid_globals::init();
+		memory_globals::init();
+		guid_globals::init();
 	}
 	}
 
 
 	~InitGlobals()
 	~InitGlobals()
 	{
 	{
-		crown::guid_globals::shutdown();
-		crown::memory_globals::shutdown();
+		guid_globals::shutdown();
+		memory_globals::shutdown();
 	}
 	}
 };
 };
 
 
+} // namespace crown
+
 int main(int argc, char **argv)
 int main(int argc, char **argv)
 {
 {
 	using namespace crown;
 	using namespace crown;