[HHPCOMP] Fix 2 MSVC C4101 warnings (#2392)
[reactos.git] / sdk / tools / hhpcomp / chmc / chmc.c
index 934bfba..9c0e021 100644 (file)
 #include <string.h>
 #include <assert.h>
 
-#if defined(_WIN32) || defined(__APPLE__)
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#ifdef __REACTOS__
-#include <io.h>
-int mkstemps(char* template, int suffix_len);
-#endif /* __REACTOS__ */
+#include "../../port/port.h"
+
+#ifdef _WIN32
+    #include <io.h>
 #else
-#ifdef __REACTOS__
-#include <sys/types.h>
-#include <sys/stat.h>
-#endif /* __REACTOS__ */
-#include <unistd.h>
+    #include <unistd.h>
 #endif
 
 #include "err.h"
@@ -673,7 +668,9 @@ int chmc_system_done(struct chmcFile *chm)
        sysp = malloc(16384);
        if (sysp) {
                UInt32 val;
+#ifndef __REACTOS__
                UInt16 code, len;
+#endif
                const char *entry_val;
 
                p = chmc_syscat_mem(sysp, &system->version, sizeof(system->version));