aboutsummaryrefslogtreecommitdiff
path: root/C/DllSecur.c
diff options
context:
space:
mode:
Diffstat (limited to 'C/DllSecur.c')
-rw-r--r--C/DllSecur.c8
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
22021-12-25 : Igor Pavlov : Public domain */ 22022-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
14typedef BOOL (WINAPI *Func_SetDefaultDllDirectories)(DWORD DirectoryFlags); 18typedef 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
39void My_SetDefaultDllDirectories() 43void My_SetDefaultDllDirectories()
40{ 44{