7308e58c3f
Previously we would compile in implementaitions of native calls for IO functions that would never be used. This CL provides implementations that throw a Dart exception if they're called by mistake. It also uses a DART_IO_DISABLED preprocessor define to clean up the build files and check that we're not including code we shouldn't. R=iposva@google.com, johnmccutchan@google.com Review URL: https://codereview.chromium.org/1839463002 .
18 lines
482 B
C
18 lines
482 B
C
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#ifndef BIN_SOCKET_WIN_H_
|
|
#define BIN_SOCKET_WIN_H_
|
|
|
|
#if !defined(BIN_SOCKET_H_)
|
|
#error Do not include socket_win.h directly. Use socket.h.
|
|
#endif
|
|
|
|
#include <iphlpapi.h>
|
|
#include <mswsock.h>
|
|
#include <winsock2.h>
|
|
#include <ws2tcpip.h>
|
|
|
|
#endif // BIN_SOCKET_WIN_H_
|