diff options
Diffstat (limited to 'C/DllSecur.c')
-rw-r--r-- | C/DllSecur.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/C/DllSecur.c b/C/DllSecur.c index d81508c..dce0c96 100644 --- a/C/DllSecur.c +++ b/C/DllSecur.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* DllSecur.c -- DLL loading security | 1 | /* DllSecur.c -- DLL loading security |
2 | 2021-12-25 : Igor Pavlov : Public domain */ | 2 | 2022-07-15 : Igor Pavlov : Public domain */ |
3 | 3 | ||
4 | #include "Precomp.h" | 4 | #include "Precomp.h" |
5 | 5 | ||
@@ -11,6 +11,10 @@ | |||
11 | 11 | ||
12 | #ifndef UNDER_CE | 12 | #ifndef UNDER_CE |
13 | 13 | ||
14 | #if defined(__GNUC__) && (__GNUC__ >= 8) | ||
15 | #pragma GCC diagnostic ignored "-Wcast-function-type" | ||
16 | #endif | ||
17 | |||
14 | typedef BOOL (WINAPI *Func_SetDefaultDllDirectories)(DWORD DirectoryFlags); | 18 | typedef BOOL (WINAPI *Func_SetDefaultDllDirectories)(DWORD DirectoryFlags); |
15 | 19 | ||
16 | #define MY_LOAD_LIBRARY_SEARCH_USER_DIRS 0x400 | 20 | #define MY_LOAD_LIBRARY_SEARCH_USER_DIRS 0x400 |
@@ -34,7 +38,7 @@ static const char * const g_Dlls = | |||
34 | #endif | 38 | #endif |
35 | 39 | ||
36 | // #define MY_CAST_FUNC (void(*)()) | 40 | // #define MY_CAST_FUNC (void(*)()) |
37 | #define MY_CAST_FUNC | 41 | #define MY_CAST_FUNC |
38 | 42 | ||
39 | void My_SetDefaultDllDirectories() | 43 | void My_SetDefaultDllDirectories() |
40 | { | 44 | { |