diff options
author | Hib Eris <hib@hiberis.nl> | 2013-04-14 16:37:14 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2013-04-14 16:37:27 +0200 |
commit | 62a5b4d5c6d5c368d190b86eab63ccb07d642c01 (patch) | |
tree | bd1fc458d2554e42fc7291d1bddef7703224638a /ConfigureChecks.cmake | |
parent | 5bc00809ebe560a180d5df93eb50bdf0ff0e97e6 (diff) |
Check for strcpy_s() and strcat_s() at configure time
It is better to test for functions than to hardcode exceptions for
specific compilers.
This fixes compiling poppler with the latest mingw-w64 compiler which
has strcpy_s() and strcat_s() build in.
Bug #63459
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 6e547ed6..5b12ac42 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -34,6 +34,8 @@ check_function_exists(popen HAVE_POPEN) check_function_exists(mkstemp HAVE_MKSTEMP) check_function_exists(mkstemps HAVE_MKSTEMPS) check_function_exists(rand_r HAVE_RAND_R) +check_function_exists(strcpy_s HAVE_STRCPY_S) +check_function_exists(strcat_s HAVE_STRCAT_S) macro(CHECK_FOR_DIR include var) check_c_source_compiles( |