summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-response.h
diff options
context:
space:
mode:
authorGravatar snowdrop2006-02-27 00:26:23 +0000
committerGravatar snowdrop2006-02-27 00:26:23 +0000
commitc734a9e1a4fc7418911d8c50817d619221d2cd42 (patch)
tree78c4cb6456957d0dc606e82b10b12d9a539c7e02 /nanohttp/nanohttp-response.h
parentf2798d9d9f26f9b0fd730339feb10679fec753df (diff)
downloadcsoap-c734a9e1a4fc7418911d8c50817d619221d2cd42.tar.gz
csoap-c734a9e1a4fc7418911d8c50817d619221d2cd42.tar.bz2
Added c++ macro
#ifdef __cplusplus extern "C" { #endif ... #ifdef __cplusplus } #endf
Diffstat (limited to 'nanohttp/nanohttp-response.h')
-rwxr-xr-xnanohttp/nanohttp-response.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/nanohttp/nanohttp-response.h b/nanohttp/nanohttp-response.h
index c91c56b..bd7bb50 100755
--- a/nanohttp/nanohttp-response.h
+++ b/nanohttp/nanohttp-response.h
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: nanohttp-response.h,v 1.4 2006/01/10 11:29:05 snowdrop Exp $
+ * $Id: nanohttp-response.h,v 1.5 2006/02/27 00:26:23 snowdrop Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003-2004 Ferhat Ayaz
@@ -24,6 +24,10 @@
#ifndef NANO_HTTP_RESPONSE_H
#define NANO_HTTP_RESPONSE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <nanohttp/nanohttp-stream.h>
#include <nanohttp/nanohttp-common.h>
#include <nanohttp/nanohttp-mime.h>
@@ -46,6 +50,8 @@ typedef struct hresponse
herror_t hresponse_new_from_socket(hsocket_t sock, hresponse_t ** out);
void hresponse_free(hresponse_t * res);
-
+#ifdef __cplusplus
+}
+#endif
#endif