autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

_AC_PROG_CXX_EXIT_DECLARATION incomplete for Microsoft tools


From: Manish Singh
Subject: _AC_PROG_CXX_EXIT_DECLARATION incomplete for Microsoft tools
Date: Fri, 31 Mar 2006 18:27:01 -0800
User-agent: Mutt/1.4.1i

A couple months ago, the following went into CVS:

--- lib/autoconf/c.m4   1 Nov 2005 07:26:52 -0000       1.208
+++ lib/autoconf/c.m4   11 Jan 2006 08:17:18 -0000      1.209
@@ -783,6 +784,7 @@ m4_define([_AC_PROG_CXX_EXIT_DECLARATION
    'extern "C" void std::exit (int); using std::exit;' \
    'extern "C" void exit (int) throw ();' \
    'extern "C" void exit (int);' \
+   'extern "C" __declspec(dllimport) void exit (int);' \
    'void exit (int);'
 do
   _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$ac_declaration

as an attempt to get it working with MSVC. This doesn't work for the
environment I'm using (Visual Studio .NET 2003); what's needed is:

    'extern "C" __declspec(noreturn) void __cdecl exit (int);'

I'm attaching a patch that attempts to cover possible variants that one
might encounter on Windows.

-Manish

Attachment: msvc-exit.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]