[Assorted-commits] SF.net SVN: assorted:[1515] cpp-commons/trunk/src/commons/strings.h
Brought to you by:
yangzhang
From: <yan...@us...> - 2009-11-23 07:58:14
|
Revision: 1515 http://assorted.svn.sourceforge.net/assorted/?rev=1515&view=rev Author: yangzhang Date: 2009-11-23 07:58:04 +0000 (Mon, 23 Nov 2009) Log Message: ----------- added C++ guards Modified Paths: -------------- cpp-commons/trunk/src/commons/strings.h Modified: cpp-commons/trunk/src/commons/strings.h =================================================================== --- cpp-commons/trunk/src/commons/strings.h 2009-11-23 07:57:04 UTC (rev 1514) +++ cpp-commons/trunk/src/commons/strings.h 2009-11-23 07:58:04 UTC (rev 1515) @@ -19,6 +19,8 @@ using namespace std; +#ifndef __cplusplus + /** * Search in p for the nth instance of c and return the character past it. */ @@ -106,6 +108,8 @@ // return NULL; // } +#endif + /** * Convert UTF-16 to UTF-8. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |