From 5dd2f1efa83aa2f131511898c047091e6fd4520f Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Fri, 29 Feb 2008 11:24:58 +0000 Subject: [PATCH] Include config.h and wine/port.h in files that use snprintf. --- dlls/dbghelp/pe_module.c | 2 ++ dlls/dmband/dmutils.c | 9 ++++++--- dlls/dmcompos/dmcompos_main.c | 3 +++ dlls/dmime/dmutils.c | 9 ++++++--- dlls/dmloader/debug.c | 5 ++++- dlls/dmscript/dmscript_main.c | 3 +++ dlls/dmsynth/dmsynth_main.c | 3 +++ dlls/dmusic/dmusic_main.c | 3 +++ dlls/dswave/dswave_main.c | 3 +++ dlls/rpcrt4/cpsf.c | 3 +++ dlls/tapi32/assisted.c | 3 +++ 11 files changed, 39 insertions(+), 7 deletions(-) diff --git a/dlls/dbghelp/pe_module.c b/dlls/dbghelp/pe_module.c index c072a249c52..ca40417cedc 100644 --- a/dlls/dbghelp/pe_module.c +++ b/dlls/dbghelp/pe_module.c @@ -22,6 +22,8 @@ */ #include "config.h" +#include "wine/port.h" + #include #include #include diff --git a/dlls/dmband/dmutils.c b/dlls/dmband/dmutils.c index 495ea3d559c..a126513ab56 100644 --- a/dlls/dmband/dmutils.c +++ b/dlls/dmband/dmutils.c @@ -17,13 +17,16 @@ * License along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ - + +#define COBJMACROS + +#include "config.h" +#include "wine/port.h" + #include #include #include -#define COBJMACROS - #include "windef.h" #include "winbase.h" #include "winnt.h" diff --git a/dlls/dmcompos/dmcompos_main.c b/dlls/dmcompos/dmcompos_main.c index 5d21544a537..36244debfe3 100644 --- a/dlls/dmcompos/dmcompos_main.c +++ b/dlls/dmcompos/dmcompos_main.c @@ -17,6 +17,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "config.h" +#include "wine/port.h" + #include "dmcompos_private.h" WINE_DEFAULT_DEBUG_CHANNEL(dmcompos); diff --git a/dlls/dmime/dmutils.c b/dlls/dmime/dmutils.c index a3117f7fa03..edcd12105f2 100644 --- a/dlls/dmime/dmutils.c +++ b/dlls/dmime/dmutils.c @@ -17,13 +17,16 @@ * License along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ - + +#define COBJMACROS + +#include "config.h" +#include "wine/port.h" + #include #include #include -#define COBJMACROS - #include "windef.h" #include "winbase.h" #include "winnt.h" diff --git a/dlls/dmloader/debug.c b/dlls/dmloader/debug.c index fd21a577884..dbd812905f7 100644 --- a/dlls/dmloader/debug.c +++ b/dlls/dmloader/debug.c @@ -16,7 +16,10 @@ * License along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ - + +#include "config.h" +#include "wine/port.h" + #include "dmloader_private.h" /* check whether the given DWORD is even (return 0) or odd (return 1) */ diff --git a/dlls/dmscript/dmscript_main.c b/dlls/dmscript/dmscript_main.c index 383bf90a1c2..6b6bbcd4f95 100644 --- a/dlls/dmscript/dmscript_main.c +++ b/dlls/dmscript/dmscript_main.c @@ -17,6 +17,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "config.h" +#include "wine/port.h" + #include "dmscript_private.h" WINE_DEFAULT_DEBUG_CHANNEL(dmscript); diff --git a/dlls/dmsynth/dmsynth_main.c b/dlls/dmsynth/dmsynth_main.c index f1441194df4..372bee5f715 100644 --- a/dlls/dmsynth/dmsynth_main.c +++ b/dlls/dmsynth/dmsynth_main.c @@ -17,6 +17,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "config.h" +#include "wine/port.h" + #include #include "dmsynth_private.h" diff --git a/dlls/dmusic/dmusic_main.c b/dlls/dmusic/dmusic_main.c index 2b629988f4e..c4a231c5d20 100644 --- a/dlls/dmusic/dmusic_main.c +++ b/dlls/dmusic/dmusic_main.c @@ -17,6 +17,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "config.h" +#include "wine/port.h" + #include #include "dmusic_private.h" diff --git a/dlls/dswave/dswave_main.c b/dlls/dswave/dswave_main.c index a66f1be61d0..2a951abf5bb 100644 --- a/dlls/dswave/dswave_main.c +++ b/dlls/dswave/dswave_main.c @@ -17,6 +17,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "config.h" +#include "wine/port.h" + #include #include "dswave_private.h" diff --git a/dlls/rpcrt4/cpsf.c b/dlls/rpcrt4/cpsf.c index dcf37219195..23c4aeb6df4 100644 --- a/dlls/rpcrt4/cpsf.c +++ b/dlls/rpcrt4/cpsf.c @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "config.h" +#include "wine/port.h" + #include #include #include diff --git a/dlls/tapi32/assisted.c b/dlls/tapi32/assisted.c index 6b4ed02cb5d..27a0c4ce55c 100644 --- a/dlls/tapi32/assisted.c +++ b/dlls/tapi32/assisted.c @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "config.h" +#include "wine/port.h" + #include #include #include "windef.h" -- 2.11.4.GIT