Fix gcc warnings
This commit is contained in:
parent
19c245fd4d
commit
508dd05f5e
@ -19,6 +19,8 @@
|
|||||||
// write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
// write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
// Boston, MA 02111-1307, USA. */
|
// Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
// $Id$
|
||||||
|
|
||||||
/* AIX requires this to be the first thing in the file. */
|
/* AIX requires this to be the first thing in the file. */
|
||||||
#if defined _AIX && !defined REGEX_MALLOC
|
#if defined _AIX && !defined REGEX_MALLOC
|
||||||
#pragma alloca
|
#pragma alloca
|
||||||
@ -126,7 +128,7 @@ by defining INHIBIT_STRING_HEADER. */
|
|||||||
# include <string.h>
|
# include <string.h>
|
||||||
# ifndef bzero
|
# ifndef bzero
|
||||||
# ifndef _LIBC
|
# ifndef _LIBC
|
||||||
# define bzero(s, n) (memset (s, '\0', n), (s))
|
# define bzero(s, n) memset (s, '\0', n)
|
||||||
# else
|
# else
|
||||||
# define bzero(s, n) __bzero (s, n)
|
# define bzero(s, n) __bzero (s, n)
|
||||||
# endif
|
# endif
|
||||||
@ -221,7 +223,8 @@ Solaris defines some of these symbols so we must undefine them first. */
|
|||||||
|
|
||||||
#undef ISASCII
|
#undef ISASCII
|
||||||
#if defined STDC_HEADERS || (!defined isascii && !defined HAVE_ISASCII)
|
#if defined STDC_HEADERS || (!defined isascii && !defined HAVE_ISASCII)
|
||||||
# define ISASCII(c) ((c) < 256)
|
//# define ISASCII(c) ((c) < 256)
|
||||||
|
inline bool ISASCII(char) { return true; }
|
||||||
#else
|
#else
|
||||||
# define ISASCII(c) isascii(c)
|
# define ISASCII(c) isascii(c)
|
||||||
#endif
|
#endif
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
// $Id$
|
||||||
|
|
||||||
#ifndef _REGEX_H
|
#ifndef _REGEX_H
|
||||||
#define _REGEX_H 1
|
#define _REGEX_H 1
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user