aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2012-09-27 22:55:39 +0000
committerLRN <lrn1986@gmail.com>2012-09-27 22:55:39 +0000
commita202cf2498161dae7e2060d7b8251303b1c06a38 (patch)
tree0e5365e90c6f4b2005f0ff15e0e489d95714e864 /src/util
parent222046dfeacea9876ec30f6d2c88de0acf62632b (diff)
downloadgnunet-a202cf2498161dae7e2060d7b8251303b1c06a38.tar.gz
gnunet-a202cf2498161dae7e2060d7b8251303b1c06a38.zip
W32-specific platform stuff is now pure C
Diffstat (limited to 'src/util')
-rw-r--r--src/util/Makefile.am2
-rw-r--r--src/util/win.c (renamed from src/util/win.cc)12
2 files changed, 4 insertions, 10 deletions
diff --git a/src/util/Makefile.am b/src/util/Makefile.am
index 35b006483..48b8e350e 100644
--- a/src/util/Makefile.am
+++ b/src/util/Makefile.am
@@ -14,7 +14,7 @@ if MINGW
14noinst_LTLIBRARIES = \ 14noinst_LTLIBRARIES = \
15 libgnunetutilwin.la 15 libgnunetutilwin.la
16libgnunetutilwin_la_SOURCES = \ 16libgnunetutilwin_la_SOURCES = \
17 win.cc \ 17 win.c \
18 winproc.c 18 winproc.c
19libgnunetutilwin_la_LDFLAGS = \ 19libgnunetutilwin_la_LDFLAGS = \
20 -no-undefined -Wl,--export-all-symbols 20 -no-undefined -Wl,--export-all-symbols
diff --git a/src/util/win.cc b/src/util/win.c
index 7b67c9e83..18e3e80c0 100644
--- a/src/util/win.cc
+++ b/src/util/win.c
@@ -19,29 +19,25 @@
19*/ 19*/
20 20
21/** 21/**
22 * @file util/win.cc 22 * @file util/win.c
23 * @brief Helper functions for MS Windows in C++ 23 * @brief Helper functions for MS Windows in C++
24 * @author Nils Durner 24 * @author Nils Durner
25 */ 25 */
26 26
27#ifndef _WIN_CC 27#ifndef _WIN_C
28#define _WIN_CC 28#define _WIN_C
29 29
30#include "winproc.h" 30#include "winproc.h"
31#include "platform.h" 31#include "platform.h"
32#include "gnunet_common.h" 32#include "gnunet_common.h"
33#include "gnunet_connection_lib.h" 33#include "gnunet_connection_lib.h"
34 34
35#include <list>
36using namespace std;
37#include <ntdef.h> 35#include <ntdef.h>
38 36
39#ifndef INHERITED_ACE 37#ifndef INHERITED_ACE
40#define INHERITED_ACE 0x10 38#define INHERITED_ACE 0x10
41#endif 39#endif
42 40
43extern "C" {
44
45int plibc_conv_to_win_path(const char *pszUnix, char *pszWindows); 41int plibc_conv_to_win_path(const char *pszUnix, char *pszWindows);
46 42
47#define _IP_ADAPTER_UNICAST_ADDRESS_HEAD \ 43#define _IP_ADAPTER_UNICAST_ADDRESS_HEAD \
@@ -1330,6 +1326,4 @@ SafeTerminateProcess (HANDLE hProcess, UINT uExitCode, DWORD dwTimeout)
1330 return bSuccess; 1326 return bSuccess;
1331} 1327}
1332 1328
1333} /* extern "C" */
1334
1335#endif 1329#endif