diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-4 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-6 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-8 | 6 | ||||
-rw-r--r-- | pango/pango-script.c | 7 |
6 files changed, 35 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Wed Oct 1 12:40:38 2003 Owen Taylor <otaylor@redhat.com> + + * pango/pango-script.c (pango_script_get_sample_language): + Fix a c99-ism, include stdlib.h for bsearch. + (#123616, Kaushal Kumar) + 2003-09-30 Matthias Clasen <maclas@gmx.de> * pango/pango-engine.h (struct _PangoEngineShapeClass): Replace diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index da77a659..0acc7f38 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,9 @@ +Wed Oct 1 12:40:38 2003 Owen Taylor <otaylor@redhat.com> + + * pango/pango-script.c (pango_script_get_sample_language): + Fix a c99-ism, include stdlib.h for bsearch. + (#123616, Kaushal Kumar) + 2003-09-30 Matthias Clasen <maclas@gmx.de> * pango/pango-engine.h (struct _PangoEngineShapeClass): Replace diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index da77a659..0acc7f38 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,3 +1,9 @@ +Wed Oct 1 12:40:38 2003 Owen Taylor <otaylor@redhat.com> + + * pango/pango-script.c (pango_script_get_sample_language): + Fix a c99-ism, include stdlib.h for bsearch. + (#123616, Kaushal Kumar) + 2003-09-30 Matthias Clasen <maclas@gmx.de> * pango/pango-engine.h (struct _PangoEngineShapeClass): Replace diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index da77a659..0acc7f38 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,9 @@ +Wed Oct 1 12:40:38 2003 Owen Taylor <otaylor@redhat.com> + + * pango/pango-script.c (pango_script_get_sample_language): + Fix a c99-ism, include stdlib.h for bsearch. + (#123616, Kaushal Kumar) + 2003-09-30 Matthias Clasen <maclas@gmx.de> * pango/pango-engine.h (struct _PangoEngineShapeClass): Replace diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index da77a659..0acc7f38 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,9 @@ +Wed Oct 1 12:40:38 2003 Owen Taylor <otaylor@redhat.com> + + * pango/pango-script.c (pango_script_get_sample_language): + Fix a c99-ism, include stdlib.h for bsearch. + (#123616, Kaushal Kumar) + 2003-09-30 Matthias Clasen <maclas@gmx.de> * pango/pango-engine.h (struct _PangoEngineShapeClass): Replace diff --git a/pango/pango-script.c b/pango/pango-script.c index 73e86ff0..c489a2e7 100644 --- a/pango/pango-script.c +++ b/pango/pango-script.c @@ -53,6 +53,7 @@ * or other dealings in this Software without prior written authorization * of the copyright holder. */ +#include <stdlib.h> #include <string.h> #include "pango-script.h" @@ -507,10 +508,12 @@ pango_script_get_sample_language (PangoScript script) "", /* PANGO_SCRIPT_TAI_LE */ "uga", /* PANGO_SCRIPT_UGARITIC */ }; - + const char *sample_language; + g_return_val_if_fail (script >= 0, NULL); g_return_val_if_fail (script < G_N_ELEMENTS (sample_languages), NULL); - const char *sample_language = sample_languages[script]; + + sample_language = sample_languages[script]; if (!sample_language[0]) return NULL; |