diff options
| -rw-r--r-- | externals/getopt/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | externals/getopt/getopt.c | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/externals/getopt/CMakeLists.txt b/externals/getopt/CMakeLists.txt index b4709a506..c8b745d55 100644 --- a/externals/getopt/CMakeLists.txt +++ b/externals/getopt/CMakeLists.txt | |||
| @@ -7,5 +7,5 @@ set(HEADERS | |||
| 7 | 7 | ||
| 8 | create_directory_groups(${SRCS} ${HEADERS}) | 8 | create_directory_groups(${SRCS} ${HEADERS}) |
| 9 | add_library(getopt ${SRCS} ${HEADERS}) | 9 | add_library(getopt ${SRCS} ${HEADERS}) |
| 10 | target_compile_definitions(getopt INTERFACE STATIC_GETOPT) | 10 | target_compile_definitions(getopt PUBLIC STATIC_GETOPT) |
| 11 | target_include_directories(getopt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) \ No newline at end of file | 11 | target_include_directories(getopt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) |
diff --git a/externals/getopt/getopt.c b/externals/getopt/getopt.c index faf84089f..948d42683 100644 --- a/externals/getopt/getopt.c +++ b/externals/getopt/getopt.c | |||
| @@ -35,7 +35,6 @@ PROFITS, BUSINESS INTERRUPTION, LOSS OF PROGRAMS OR OTHER DATA ON | |||
| 35 | YOUR INFORMATION HANDLING SYSTEM OR OTHERWISE, EVEN If WE ARE | 35 | YOUR INFORMATION HANDLING SYSTEM OR OTHERWISE, EVEN If WE ARE |
| 36 | EXPRESSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. | 36 | EXPRESSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
| 37 | */ | 37 | */ |
| 38 | #define _CRT_SECURE_NO_WARNINGS | ||
| 39 | #include <stdlib.h> | 38 | #include <stdlib.h> |
| 40 | #include <stdio.h> | 39 | #include <stdio.h> |
| 41 | #ifdef _MSC_VER | 40 | #ifdef _MSC_VER |