diff options
author | Alin Serdean <aserdean@cloudbasesolutions.com> | 2013-12-19 18:23:12 +0000 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-12-27 08:03:52 -0800 |
commit | e42dfc72258c0b563a16ec36c9230287fbbcc7ae (patch) | |
tree | 31ce408cb71ccad93f7001cc4228e71bc4fdc314 /include/windows/windefs.h | |
parent | 9c6c453eb7f5c4341f0b73aa2900517e23ec5518 (diff) | |
download | openvswitch-e42dfc72258c0b563a16ec36c9230287fbbcc7ae.tar.gz |
Add common definitions for Windows builds.
Signed-off-by: Alin Serdean <aserdean at cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include/windows/windefs.h')
-rw-r--r-- | include/windows/windefs.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/windows/windefs.h b/include/windows/windefs.h new file mode 100644 index 000000000..dcfa20bf0 --- /dev/null +++ b/include/windows/windefs.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2013 Nicira, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef WINDEFS_H +#define WINDEFS_H 1 + +#include <Winsock2.h> +#include <In6addr.h> +#include <WS2tcpip.h> +#include <windows.h> +#include <BaseTsd.h> + +#define inline __inline +#define __func__ __FUNCTION__ +#define ssize_t SSIZE_T +#define u_int8_t uint8_t +#define u_int16_t uint16_t +#define u_int32_t uint32_t +#define u_int64_t uint64_t + +#endif /* windefs.h */ |