X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fstrstr.h;h=f244b9644548755d25897bec314d18d1c81c50ea;hb=c60b43afa76cbc6ed19a4794eab0fe15f9b54300;hp=0162d097102f9f2c2194010dd591328b54fb8be3;hpb=8c60a675a2bf363ca1d6a1cb1889440f89bc572c;p=gnulib.git diff --git a/lib/strstr.h b/lib/strstr.h index 0162d0971..f244b9644 100644 --- a/lib/strstr.h +++ b/lib/strstr.h @@ -1,5 +1,5 @@ /* Searching in a string. - Copyright (C) 2001 Free Software Foundation, Inc. + Copyright (C) 2001-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,14 +15,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef PARAMS -# if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES -# define PARAMS(Args) Args -# else -# define PARAMS(Args) () -# endif -#endif - #if HAVE_STRSTR /* Get strstr() declaration. */ @@ -30,7 +22,15 @@ #else +#ifdef __cplusplus +extern "C" { +#endif + /* Find the first occurrence of NEEDLE in HAYSTACK. */ -extern char *strstr PARAMS ((const char *haystack, const char *needle)); +extern char *strstr (const char *haystack, const char *needle); + +#ifdef __cplusplus +} +#endif #endif