next try
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
diff --git a/include/freetype/config/ft2build.h b/include/freetype/config/ft2build.h
index 42b8ea9..3e50563 100644
--- a/include/freetype/config/ft2build.h
+++ b/include/freetype/config/ft2build.h
@@ -70,7 +70,8 @@
/* installed on the particular system. */
/* */
#ifndef FT2_CONFIG_ROOT
-#define FT2_CONFIG_ROOT FT2_ROOT ## / ## config
+#define FT2_CONFIG_ROOT_( x ) x ## / ## config
+#define FT2_CONFIG_ROOT FT2_CONFIG_ROOT_(FT2_ROOT)
#endif
@@ -208,7 +209,8 @@
/* now include internal headers definitions from <freetype/internal/...> */
-#include FT2_INTERNAL_FILE(internal.h)
+#define FT2_INTERNAL_H FT2_INTERNAL_FILE(internal.h)
+#include FT2_INTERNAL_H
#endif /* __FT2_BUILD_H__ */
diff --git a/src/autohint/ahoptim.c b/src/autohint/ahoptim.c
index f10d3a6..910d635 100644
--- a/src/autohint/ahoptim.c
+++ b/src/autohint/ahoptim.c
@@ -48,7 +48,7 @@
#undef LOG
#ifdef AH_DEBUG_OPTIM
-#define LOG( x ) optim_log##x
+#define LOG( x ) optim_log ## x
#else
diff --git a/src/autohint/ahtypes.h b/src/autohint/ahtypes.h
index 6597665..8e47379 100644
--- a/src/autohint/ahtypes.h
+++ b/src/autohint/ahtypes.h
@@ -35,7 +35,7 @@
#ifdef AH_DEBUG
#include <stdio.h>
-#define AH_LOG( x ) printf##x
+#define AH_LOG( x ) printf ## x
#else