Module: wine Branch: master Commit: 5dd2f1efa83aa2f131511898c047091e6fd4520f URL: http://source.winehq.org/git/wine.git/?a=commit;h=5dd2f1efa83aa2f131511898c0...
Author: Rob Shearman rob@codeweavers.com Date: Fri Feb 29 11:24:58 2008 +0000
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 c072a24..ca40417 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 <stdlib.h> #include <stdio.h> #include <string.h> diff --git a/dlls/dmband/dmutils.c b/dlls/dmband/dmutils.c index 495ea3d..a126513 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 <stdio.h> #include <stdarg.h> #include <string.h>
-#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 5d21544..36244de 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 a3117f7..edcd121 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 <stdio.h> #include <stdarg.h> #include <string.h>
-#define COBJMACROS - #include "windef.h" #include "winbase.h" #include "winnt.h" diff --git a/dlls/dmloader/debug.c b/dlls/dmloader/debug.c index fd21a57..dbd8129 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 383bf90..6b6bbcd 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 f144119..372bee5 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 <stdio.h>
#include "dmsynth_private.h" diff --git a/dlls/dmusic/dmusic_main.c b/dlls/dmusic/dmusic_main.c index 2b62998..c4a231c 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 <stdio.h>
#include "dmusic_private.h" diff --git a/dlls/dswave/dswave_main.c b/dlls/dswave/dswave_main.c index a66f1be..2a951ab 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 <stdio.h>
#include "dswave_private.h" diff --git a/dlls/rpcrt4/cpsf.c b/dlls/rpcrt4/cpsf.c index dcf3721..23c4aeb 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 <stdarg.h> #include <stdio.h> #include <string.h> diff --git a/dlls/tapi32/assisted.c b/dlls/tapi32/assisted.c index 6b4ed02..27a0c4c 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 <stdarg.h> #include <stdio.h> #include "windef.h"