mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Windows/DynamicLibrary.inc: Clean up ELM_Callback. We may check the decl instead of the versions of individual libraries.
autoconf: Add checking ELM_Callback decl for mingw32 and mingw-w64. cmake/config-ix.cmake: Add checking ELM_Callback decl for win32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130657 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1429,6 +1429,24 @@ if test "$llvm_cv_os_type" = "MingW" ; then
|
||||
AC_CHECK_LIB(gcc,__cmpdi2,AC_DEFINE([HAVE___CMPDI2],[1],[Have host's __cmpdi2]))
|
||||
fi
|
||||
|
||||
dnl Check Win32 API EnumerateLoadedModules.
|
||||
if test "$llvm_cv_os_type" = "MingW" ; then
|
||||
AC_MSG_CHECKING([whether EnumerateLoadedModules() accepts new decl])
|
||||
AC_COMPILE_IFELSE([[#include <windows.h>
|
||||
#include <imagehlp.h>
|
||||
extern void foo(PENUMLOADED_MODULES_CALLBACK);
|
||||
extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));]],
|
||||
[
|
||||
AC_MSG_RESULT([yes])
|
||||
llvm_cv_win32_elmcb_pcstr="PCSTR"
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT([no])
|
||||
llvm_cv_win32_elmcb_pcstr="PSTR"
|
||||
])
|
||||
AC_DEFINE_UNQUOTED([WIN32_ELMCB_PCSTR],$llvm_cv_win32_elmcb_pcstr,[Type of 1st arg on ELM Callback])
|
||||
fi
|
||||
|
||||
dnl Check for variations in the Standard C++ library and STL. These macros are
|
||||
dnl provided by LLVM in the autoconf/m4 directory.
|
||||
AC_FUNC_ISNAN
|
||||
|
Reference in New Issue
Block a user