]> granicus.if.org Git - yasm/commitdiff
Pre-include libyasm/coretype.h to avoid #defining functions such as
authorPeter Johnson <peter@tortall.net>
Sat, 10 May 2003 05:40:44 +0000 (05:40 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 10 May 2003 05:40:44 +0000 (05:40 -0000)
yasm__strsep() (here) before their prototypes are declared (in coretype.h).
Header protections keep coretype.h from being included again (from libyasm.h).

svn path=/trunk/yasm/; revision=948

util.h

diff --git a/util.h b/util.h
index 3e6ff1c419cedbe4a97e0a75b920eafdde1bcf88..5af2e9101013fcfebe47a0a688bb6a100c1a9b32 100644 (file)
--- a/util.h
+++ b/util.h
@@ -1,4 +1,4 @@
-/* $IdPath: yasm/util.h,v 1.51 2003/05/04 20:28:28 peter Exp $
+/* $IdPath: yasm/util.h,v 1.52 2003/05/05 03:42:08 peter Exp $
  * YASM utility functions.
  *
  * Includes standard headers and defines prototypes for replacement functions
@@ -51,6 +51,8 @@
 # include <assert.h>
 #endif
 
+#include <libyasm/coretype.h>
+
 #ifdef lint
 # define _(String)     String
 #else