]> git.sur5r.net Git - openocd/blobdiff - src/helper/replacements.c
Eliminate MixedCaps symbol from public JTAG TAP API:
[openocd] / src / helper / replacements.c
index 9f1312ca92cbda7ffbde69ef358fd8715c987219..6b367fa8437a1bcbc17b67d150df37d56fe6b4a5 100644 (file)
  *   Free Software Foundation, Inc.,                                       *
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
 /* DANGER!!!! These must be defined *BEFORE* replacements.h and the malloc() macro!!!! */
 
 #include <stdlib.h>
 #include <string.h>
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
 /* 
  * clear_malloc
  *
@@ -64,9 +57,13 @@ void *fill_malloc(size_t size)
        return t;
 }
 
-#include "replacements.h"
-
-#include <stdio.h>
+#define IN_REPLACEMENTS_C
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
 
 #ifdef _WIN32
 #include <io.h>