* BUG: fix compilation on Windows/Cygwin.

[GB.SIGNAL]
* BUG: fix compilation on Windows/Cygwin.


git-svn-id: svn://localhost/gambas/trunk@4564 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
François Gallo 2012-03-18 19:21:52 +00:00
parent 81795aa4e8
commit da79fa86de
2 changed files with 11 additions and 2 deletions

View file

@ -40,7 +40,7 @@
#define SIGPWR -1
#endif
#ifndef OS_BSD
#if !defined(OS_BSD) && !defined(OS_CYGWIN)
typedef
struct siginfo siginfo_t;
#endif
@ -286,7 +286,10 @@ GB_DESC CSignalDesc[] =
GB_CONSTANT("SIGILL", "i", SIGILL),
GB_CONSTANT("SIGTRAP", "i", SIGTRAP),
GB_CONSTANT("SIGABRT", "i", SIGABRT),
#ifndef OS_CYGWIN
// Cygwin doesn't define this SIGNAL
GB_CONSTANT("SIGIOT", "i", SIGIOT),
#endif
GB_CONSTANT("SIGBUS", "i", SIGBUS),
GB_CONSTANT("SIGFPE", "i", SIGFPE),
GB_CONSTANT("SIGKILL", "i", SIGKILL),

View file

@ -26,7 +26,13 @@
#include "vb.h"
#include "vbdate.h"
#include <stdio.h>
#include <strings.h>
#ifdef OS_CYGWIN
#include <string.h>
#else
#include <strings.h>
#endif
#include <math.h>
BEGIN_METHOD(CVB_val, GB_STRING str)