summaryrefslogtreecommitdiff
path: root/regex.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-01 19:55:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-01 19:55:25 +0000
commit9ed3d64d1d3e0fd60c9a65d621efdf66c59b0d9d (patch)
treea22c964558bdf523fdbc872feb8c70695d150915 /regex.h
parent871913462f7e6d3a74b7408ab1677e93f53b0b23 (diff)
* suppress warnings on cygwin, mingw and mswin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.h')
-rw-r--r--regex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/regex.h b/regex.h
index 88868e2b4c..fe4dbbb9ab 100644
--- a/regex.h
+++ b/regex.h
@@ -184,7 +184,7 @@ typedef struct
#ifdef __STDC__
-extern char *re_compile_pattern (const char *, int, struct re_pattern_buffer *);
+extern const char *re_compile_pattern (const char *, int, struct re_pattern_buffer *);
void re_free_pattern (struct re_pattern_buffer *);
/* Is this really advertised? */
extern int re_adjust_startpos (struct re_pattern_buffer *, const char*, int, int, int);
@@ -205,7 +205,7 @@ extern int re_exec (const char *);
#else /* !__STDC__ */
-extern char *re_compile_pattern ();
+extern const char *re_compile_pattern ();
void re_free_regexp ();
/* Is this really advertised? */
extern int re_adjust_startpos ();