Include config.h and wine/port.h in files that use snprintf.
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) */