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-stream.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'nanohttp/nanohttp-stream.h') diff --git a/nanohttp/nanohttp-stream.h b/nanohttp/nanohttp-stream.h index 20ced17..0cc3ab7 100755 --- a/nanohttp/nanohttp-stream.h +++ b/nanohttp/nanohttp-stream.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-stream.h,v 1.7 2006/01/10 11:29:05 snowdrop Exp $ + * $Id: nanohttp-stream.h,v 1.8 2006/02/27 00:26:23 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003-2004 Ferhat Ayaz @@ -23,6 +23,11 @@ ******************************************************************/ #ifndef NANO_HTTP_STREAM_H #define NANO_HTTP_STREAM_H + +#ifdef __cplusplus +extern "C" { +#endif + #include void _log_str(char *fn, char *str, int size); @@ -269,4 +274,8 @@ herror_t http_output_stream_write_string(http_output_stream_t * stream, */ herror_t http_output_stream_flush(http_output_stream_t * stream); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.1-32-gdbae