Add Microsoft Windows support.
Update issue 62 Status: Feedback Gleen, I slightly modified your patches to better stick with the style of the rest of the project, Can you please confirm that it does not break? PR: Issue 62 Submitted by: glenn.ergeerts
This commit is contained in:
parent
0f32259ee2
commit
de64cce14c
8 changed files with 207 additions and 1 deletions
33
config_windows.h.cmake
Normal file
33
config_windows.h.cmake
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/*-
|
||||
* Copyright (C) 2011 Glenn Ergeerts.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Lesser General Public License as published by the
|
||||
* Free Software Foundation, either version 3 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifndef __CONFIG_WINDOWS_H__
|
||||
#define __CONFIG_WINDOWS_H__
|
||||
|
||||
#include <winsock2.h>
|
||||
|
||||
#define htole32(x) (x)
|
||||
#define le32toh(x) (x)
|
||||
#define le16toh(x) (x)
|
||||
#define htobe16(x) htons(x)
|
||||
#define be16toh(x) ntohs(x)
|
||||
|
||||
#define ENOTSUP WSAEOPNOTSUPP
|
||||
|
||||
#endif /* !__CONFIG_WINDOWS_H__ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue