瀏覽代碼

Adding icons, resolving MinGW compilation

Vladimir Dubrovin 11 年之前
父節點
當前提交
6a0b78268f

+ 0 - 1
.gitignore

@@ -14,7 +14,6 @@ tmp/
 *.bat
 *.swp
 *.o
-3proxy.res
 *.idb
 src/version.h
 src/res

二進制
3proxy.res


+ 2 - 1
Makefile.msvc

@@ -15,7 +15,8 @@ LN = link
 LDFLAGS = /nologo /subsystem:console /incremental:no /machine:I386
 DLFLAGS = /DLL
 DLSUFFICS = .dll
-LIBS = ws2_32.lib advapi32.lib odbc32.lib user32.lib kernel32.lib Gdi32.lib
+LIBS = ws2_32.lib advapi32.lib odbc32.lib user32.lib kernel32.lib Gdi32.lib 
+LIBSOLD = libeay32MT.lib ssleay32MT.lib
 LIBEXT = .lib                                                                                               
 LNOUT = /out:
 EXESUFFICS = .exe

+ 2 - 1
Makefile.msvc64

@@ -15,7 +15,8 @@ LN = link
 LDFLAGS = /nologo /subsystem:console /incremental:no /machine:x64
 DLFLAGS = /DLL
 DLSUFFICS = .dll
-LIBS = ws2_32.lib advapi32.lib odbc32.lib user32.lib kernel32.lib Gdi32.lib
+LIBS = ws2_32.lib advapi32.lib odbc32.lib user32.lib kernel32.lib Gdi32.lib 
+LIBSOLD = libeay32MT.lib ssleay32MT.lib
 LIBEXT = .lib
 LNOUT = /out:
 EXESUFFICS = .exe

+ 0 - 7
src/plugins/LdapPlugin/ldapauth.c

@@ -105,13 +105,6 @@ int savecouters(void)
 #ifdef _WIN32
 __declspec(dllexport) int start(struct pluginlink * pluginlink, 
 				 int argc, char** argv);
-BOOL APIENTRY DllMain( HMODULE hModule,
-                       DWORD  ul_reason_for_call,
-                       LPVOID lpReserved
-					 )
-{
-     return TRUE;
-}
 #else
 
 int start(struct pluginlink * pluginlink, 

+ 1 - 1
src/plugins/StringsPlugin/StringsPlugin.c

@@ -153,7 +153,7 @@ static int restore_old_table(void * v)
 #ifdef _WIN32
 __declspec(dllexport) int start(struct pluginlink * pluginlink, 
 				 int argc, char** argv);
-BOOL APIENTRY DllMain( HMODULE hModule,
+BOOL WINAPI DllMain( HINSTANCE hModule,
                        DWORD  ul_reason_for_call,
                        LPVOID lpReserved
 					 )

+ 1 - 1
src/plugins/TrafficPlugin/TrafficPlugin.c

@@ -257,7 +257,7 @@ void mylogfunc(struct clientparam * param, const unsigned char * pz) {
 
 #ifdef _WIN32
 
-BOOL APIENTRY DllMain( HANDLE hModule, 
+BOOL WINAPI DllMain( HINSTANCE hModule, 
                        DWORD  ul_reason_for_call, 
                        LPVOID lpReserved
 					 )

+ 0 - 8
src/plugins/WindowsAuthentication/WindowsAuthentication.c

@@ -20,14 +20,6 @@ extern "C" {
 					 int argc, char** argv);
 
 
-BOOL APIENTRY DllMain( HMODULE hModule,
-                       DWORD  ul_reason_for_call,
-                       LPVOID lpReserved
-					 )
-{
-    return TRUE;
-}
-
 static struct auth alwaysauth;
 
 static char sidbuf[4096];

+ 0 - 9
src/plugins/utf8tocp1251/utf8tocp1251.c

@@ -18,15 +18,6 @@ extern "C" {
  __declspec(dllexport) int utf8tocp1251(struct pluginlink * pluginlink, 
 					 int argc, char** argv);
 
-
-BOOL APIENTRY DllMain( HMODULE hModule,
-                       DWORD  ul_reason_for_call,
-                       LPVOID lpReserved
-					 )
-{
-    return TRUE;
-}
-
 static struct auth alwaysauth;