mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 21:33:59 +02:00
- few tweaks to get things compiling under mingw
This commit is contained in:
@@ -1900,7 +1900,7 @@ void BroadCastClientSocketThread::execute() {
|
||||
#else
|
||||
setsockopt(bcfd, SOL_SOCKET, SO_REUSEADDR, (char *)&val, sizeof(val));
|
||||
#endif
|
||||
if(bind( bcfd, (struct sockaddr *)&bcaddr, sizeof(bcaddr) ) < 0 ) {
|
||||
if(::bind( bcfd, (struct sockaddr *)&bcaddr, sizeof(bcaddr) ) < 0 ) {
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"bind failed: %s\n", getLastSocketErrorFormattedText().c_str());
|
||||
}
|
||||
else {
|
||||
|
@@ -257,7 +257,15 @@ void init_win32() {
|
||||
|
||||
HWND hwnd = wminfo.window;
|
||||
|
||||
::SetClassLong(hwnd, GCL_HICON, (LONG) icon);
|
||||
#ifdef __MINGW32__
|
||||
#define GCL_HICON -14
|
||||
#endif
|
||||
|
||||
#ifndef __MINGW32__
|
||||
LONG iconPtr = (LONG)icon;
|
||||
|
||||
::SetClassLong(hwnd, GCL_HICON, iconPtr);
|
||||
#endif
|
||||
}
|
||||
void done_win32() {
|
||||
::DestroyIcon(icon);
|
||||
|
Reference in New Issue
Block a user