From 2f7cab237f3e52264582e5e64c510da5660b94a8 Mon Sep 17 00:00:00 2001 From: galaxyhaxz Date: Mon, 11 Jun 2018 03:24:24 -0500 Subject: [PATCH] Compatible for both VS and GNU VS doesn't have stdint.h. (Yeah it's kinda outdated :P) --- defs.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/defs.h b/defs.h index 1b8afae..c739908 100644 --- a/defs.h +++ b/defs.h @@ -29,12 +29,9 @@ #ifndef IDA_GARBAGE #define IDA_GARBAGE -#include - -// note to self: only works for x86, originally used this way by the devs inline void memset32(void *s, unsigned int c, size_t n) { - uint32_t *p = (uint32_t*)s; + unsigned int *p = (unsigned int *)s; for (int i = 0; i < n; i++) { p[i] = c; }