diff options
| author | Pali Rohár <pali.rohar@gmail.com> | 2024-03-22 01:35:52 +0100 |
|---|---|---|
| committer | Silvio <silvio.traversaro@iit.it> | 2025-04-28 14:49:51 +0200 |
| commit | 8c28ff3b85f87ae9cb645fed9ec2d146b3059e7a (patch) | |
| tree | 212a37677ddfb5dd89fcf46522e8add1c06c54ac /src | |
| parent | e0520e25643b51e69aa78e5944cdf2853323b06a (diff) | |
| download | dlfcn-win32-8c28ff3b85f87ae9cb645fed9ec2d146b3059e7a.tar.gz dlfcn-win32-8c28ff3b85f87ae9cb645fed9ec2d146b3059e7a.tar.bz2 dlfcn-win32-8c28ff3b85f87ae9cb645fed9ec2d146b3059e7a.zip | |
Fix includes
* Remove unused include stdio.h
* Add used include string.h
* Add reason comments for includes
Diffstat (limited to 'src')
| -rw-r--r-- | src/dlfcn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dlfcn.c b/src/dlfcn.c index 2711e60..d52d736 100644 --- a/src/dlfcn.c +++ b/src/dlfcn.c | |||
| @@ -26,12 +26,12 @@ | |||
| 26 | 26 | ||
| 27 | #ifdef _DEBUG | 27 | #ifdef _DEBUG |
| 28 | #define _CRTDBG_MAP_ALLOC | 28 | #define _CRTDBG_MAP_ALLOC |
| 29 | #include <stdlib.h> | 29 | #include <stdlib.h> /* malloc() and free() */ |
| 30 | #include <crtdbg.h> | 30 | #include <crtdbg.h> |
| 31 | #endif | 31 | #endif |
| 32 | #include <windows.h> | 32 | #include <windows.h> |
| 33 | #include <stdio.h> | 33 | #include <stdlib.h> /* malloc() and free() */ |
| 34 | #include <stdlib.h> | 34 | #include <string.h> /* strlen() and memcpy() */ |
| 35 | 35 | ||
| 36 | /* Older versions do not have this type */ | 36 | /* Older versions do not have this type */ |
| 37 | #if _WIN32_WINNT < 0x0500 | 37 | #if _WIN32_WINNT < 0x0500 |
