#ifndef HB_PRIVATE_HH
#define HB_PRIVATE_HH
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
};
-#if HAVE_GLIB
+#ifdef HAVE_GLIB
extern HB_INTERNAL hb_unicode_funcs_t _hb_glib_unicode_funcs;
#define _hb_unicode_funcs_default _hb_glib_unicode_funcs
-#elif HAVE_ICU
+#elif defined(HAVE_ICU)
extern HB_INTERNAL hb_unicode_funcs_t _hb_icu_unicode_funcs;
#define _hb_unicode_funcs_default _hb_icu_unicode_funcs
#else
* Google Author(s): Behdad Esfahbod
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
hb_font_t *font = hb_font_create (face);
hb_font_set_scale (font, upem, upem);
-#if HAVE_FREETYPE
+#ifdef HAVE_FREETYPE
hb_ft_font_set_funcs (font);
#endif
#include <locale.h>
#include <errno.h>
#include <fcntl.h>
-#if HAVE_IO_H
+#ifdef HAVE_IO_H
#include <io.h> /* for _setmode() under Windows */
#endif
#include "options.hh"
-#if HAVE_FREETYPE
+#ifdef HAVE_FREETYPE
#include <hb-ft.h>
#endif
/* read it */
GString *gs = g_string_new (NULL);
char buf[BUFSIZ];
-#if HAVE_IO_H
+#ifdef HAVE_IO_H
_setmode (fileno (stdin), O_BINARY);
#endif
while (!feof (stdin)) {
hb_font_set_scale (font, upem, upem);
hb_face_destroy (face);
-#if HAVE_FREETYPE
+#ifdef HAVE_FREETYPE
hb_ft_font_set_funcs (font);
#endif
if (output_file)
fp = fopen (output_file, "wb");
else {
-#if HAVE_IO_H
+#ifdef HAVE_IO_H
_setmode (fileno (stdout), O_BINARY);
#endif
fp = stdout;