From c734a9e1a4fc7418911d8c50817d619221d2cd42 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Mon, 27 Feb 2006 00:26:23 +0000 Subject: Added c++ macro #ifdef __cplusplus extern "C" { #endif ... #ifdef __cplusplus } #endf --- nanohttp/nanohttp-request.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'nanohttp/nanohttp-request.h') diff --git a/nanohttp/nanohttp-request.h b/nanohttp/nanohttp-request.h index 537cf08..d89fa91 100755 --- a/nanohttp/nanohttp-request.h +++ b/nanohttp/nanohttp-request.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-request.h,v 1.4 2006/01/10 11:29:05 snowdrop Exp $ + * $Id: nanohttp-request.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_REQUEST_H #define NANO_HTTP_REQUEST_H +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -48,4 +52,8 @@ typedef struct hrequest herror_t hrequest_new_from_socket(hsocket_t sock, hrequest_t ** out); void hrequest_free(hrequest_t * req); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.1-32-gdbae