Преглед на файлове

Z991239-958 #comment fix:修复windows下编译失败的问题

雷志明80280620 преди 5 години
родител
ревизия
3f2adad328
променени са 5 файла, в които са добавени 10 реда и са изтрити 12 реда
  1. 2 0
      Module/CMakeLists.txt
  2. 2 3
      Module/mod_Initializer/comm.cpp
  3. 2 3
      Module/mod_Initializer/comm.h
  4. 2 3
      Module/mod_accessauth/comm.cpp
  5. 2 3
      Module/mod_accessauth/comm.h

+ 2 - 0
Module/CMakeLists.txt

@@ -163,6 +163,8 @@ add_subdirectory(mod_healthmanager)
 add_subdirectory(mod_chromium)
 add_subdirectory(mod_validityVertifier)
 add_subdirectory(mod_tokenmgr)
+add_subdirectory(mod_accessauth)
+add_subdirectory(mod_Initializer)
 # 汇总要依赖拷贝的第三方库
 set(RVC_CONAN_DEP_LIBS ${RVC_CONAN_DEP_LIBS} ${MODULE_CONAN_DEP_LIBS} PARENT_SCOPE)
 

+ 2 - 3
Module/mod_Initializer/comm.cpp

@@ -191,8 +191,7 @@ char* Str2Hex(const char* src, int srcLen)
 	return tmp;
 }
 
-#ifdef RVC_OS_WIN
-#else
+#ifdef __linux__
 	int getIPFromLinux(char* ip) {
 		//if (strlen(ip) < 15) return 1;
 		struct ifaddrs* ifAddrStruct = NULL;
@@ -600,4 +599,4 @@ char* Str2Hex(const char* src, int srcLen)
 		return t;
 	}
 
-#endif // __RVC_OS_WIN
+#endif // __linux__

+ 2 - 3
Module/mod_Initializer/comm.h

@@ -39,8 +39,7 @@ char* Hex2Str(const char* src, int& dstLen);
 
 char* Str2Hex(const char* str, int strLen);
 
-#ifdef RVC_OS_WIN
-#else
+#ifdef __linux__
 #include <sys/types.h>
 #include <ifaddrs.h>
 #include <netinet/in.h> 
@@ -70,5 +69,5 @@ char* Str2Hex(const char* str, int strLen);
 	bool set_system_time(TIME* _time);
 	extern "C" bool set_system_time_by_sec(int sec);
 	TIME* get_system_time();
-#endif //__RVC_OS_WIN
+#endif //__linux__
 #endif // !__COMM_H

+ 2 - 3
Module/mod_accessauth/comm.cpp

@@ -197,8 +197,7 @@ char* Str2Hex(const char* src, int srcLen)
 	return tmp;
 }
 
-#ifdef RVC_OS_WIN
-#else
+#ifdef __linux__
 	
 	int getIPFromLinux(char* ip) {
 		//if (strlen(ip) < 15) return 1;
@@ -627,4 +626,4 @@ char* Str2Hex(const char* src, int srcLen)
 		ret->second = str2int(str.substr(12, 2));
 		return ret;
 	}
-#endif // __RVC_OS_LINUX
+#endif // __linux__

+ 2 - 3
Module/mod_accessauth/comm.h

@@ -47,8 +47,7 @@ char* Hex2Str(const char* src, int& dstLen);
 
 char* Str2Hex(const char* str, int strLen);
 
-#ifdef RVC_OS_WIN
-#else
+#ifdef __linux__
 #include <sys/types.h>
 #include <ifaddrs.h>
 #include <netinet/in.h> 
@@ -80,6 +79,6 @@ extern "C" bool set_system_time_by_sec(int sec);
 TIME* get_system_time();
 string time2str(const TIME * tim);
 TIME* str2time(string str);
-#endif //RVC_OS_LINUX
+#endif //__linux__
 
 #endif // !__COMM_H