octave-maintainers
[Top][All Lists]
Advanced

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

MSVC compiler support [patch 41]: "== void" preprocessor directive


From: Michael Goffioul
Subject: MSVC compiler support [patch 41]: "== void" preprocessor directive
Date: Tue, 17 Oct 2006 22:15:02 +0200
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

MSVC preprocessor does not support comparison with "void" (non integer constant)
Index: src/sighandlers.cc
===================================================================
RCS file: /cvs/octave/src/sighandlers.cc,v
retrieving revision 1.95
diff -p -c -r1.95 sighandlers.cc
*** src/sighandlers.cc  28 Jun 2006 16:05:24 -0000      1.95
--- src/sighandlers.cc  17 Oct 2006 11:07:42 -0000
*************** static bool Vsighup_dumps_octave_core = 
*** 72,82 ****
--- 72,86 ----
  // Similar to Vsighup_dumps_octave_core, but for SIGTERM signal.
  static bool Vsigterm_dumps_octave_core = true;
  
+ #ifndef _MSC_VER
  #if RETSIGTYPE == void
  #define SIGHANDLER_RETURN(status) return
  #else
  #define SIGHANDLER_RETURN(status) return status
  #endif
+ #else
+ #define SIGHANDLER_RETURN(status) return
+ #endif
  
  #if defined (MUST_REINSTALL_SIGHANDLERS)
  #define MAYBE_REINSTALL_SIGHANDLER(sig, handler) \

reply via email to

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