From: handa Date: Thu, 16 Sep 2010 01:20:44 +0000 (+0000) Subject: Include alloca.h if available. X-Git-Tag: REL-0-9-12~4 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=ecf6ba6c8e63db5a71854fe204e006442ddbd372;p=m17n%2Flibotf.git Include alloca.h if available. --- diff --git a/example/otflist.c b/example/otflist.c index 5b64e0e..687d4c1 100644 --- a/example/otflist.c +++ b/example/otflist.c @@ -31,6 +31,10 @@ write to the Free Software Foundation, Inc., 59 Temple Place, Suite #include FT_FREETYPE_H #include "config.h" +#ifdef HAVE_ALLOCA_H +#include +#endif + #include /* Format MSG by FMT and print the result to the stderr, and exit. */ diff --git a/example/otftobdf.c b/example/otftobdf.c index 9ea49ba..b9488da 100644 --- a/example/otftobdf.c +++ b/example/otftobdf.c @@ -26,6 +26,11 @@ write to the Free Software Foundation, Inc., 59 Temple Place, Suite #include #include FT_FREETYPE_H +#include "config.h" +#ifdef HAVE_ALLOCA_H +#include +#endif + #define DEFAULT_PIXEL_SIZE 16 FT_Face face; diff --git a/example/otfview.c b/example/otfview.c index 82c3cfe..d4a9398 100644 --- a/example/otfview.c +++ b/example/otfview.c @@ -29,6 +29,9 @@ write to the Free Software Foundation, Inc., 59 Temple Place, Suite #include #include "config.h" +#ifdef HAVE_ALLOCA_H +#include +#endif #ifdef HAVE_X11_XAW_COMMAND_H diff --git a/src/internal.h b/src/internal.h index 4be5f46..dc924ca 100644 --- a/src/internal.h +++ b/src/internal.h @@ -28,6 +28,10 @@ write to the Free Software Foundation, Inc., 59 Temple Place, Suite extern "C" { #endif +#ifdef HAVE_ALLOCA_H +#include +#endif + #define OTF_ERROR(err, arg) \ return (otf__error ((err), errfmt, (arg)), errret)