Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

win32: Use_WIN32 and notWIN32 for preprocessor#204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
waywardmonkeys wants to merge1 commit intoGecode:release/6.3.0
base:release/6.3.0
Choose a base branch
Loading
fromwaywardmonkeys:improve-win32-build
Open
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletionsgecode/search/cpprofiler/connector.hpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -42,7 +42,7 @@
#include <vector>
#include <cstring>

#ifdefWIN32
#ifdef_WIN32

#include <winsock2.h>
#include <ws2tcpip.h>
Expand DownExpand Up@@ -270,7 +270,7 @@ namespace Gecode { namespace CPProfiler {
struct addrinfo hints, *servinfo, *p;
int rv;

#ifdefWIN32
#ifdef_WIN32
// Initialise Winsock.
WSADATA wsaData;
int startupResult = WSAStartup(MAKEWORD(2, 2), &wsaData);
Expand All@@ -297,7 +297,7 @@ namespace Gecode { namespace CPProfiler {
}

if (::connect(sockfd, p->ai_addr, p->ai_addrlen) == -1) {
#ifdefWIN32
#ifdef_WIN32
closesocket(sockfd);
#else
close(sockfd);
Expand DownExpand Up@@ -378,7 +378,7 @@ namespace Gecode { namespace CPProfiler {

inline void
Connector::disconnect() {
#ifdefWIN32
#ifdef_WIN32
closesocket(sockfd);
#else
close(sockfd);
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp