Define WEXITSTATUS if not available (e.g. on MinGW)

* iface/dve2/dve2.cc: Here.
This commit is contained in:
Alexandre Duret-Lutz 2012-04-27 12:57:50 +02:00
parent 2c8e5297e7
commit 9ea0e00ae7

View file

@ -1,5 +1,6 @@
// Copyright (C) 2011 Laboratoire de Recherche et Developpement de // -*- coding: utf-8 -*-
// l'Epita (LRDE) // Copyright (C) 2011, 2012 Laboratoire de Recherche et Développement
// de l'Epita (LRDE)
// //
// This file is part of Spot, a model checking library. // This file is part of Spot, a model checking library.
// //
@ -26,6 +27,11 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
// MinGW does not define this.
#ifndef WEXITSTATUS
# define WEXITSTATUS(x) ((x) & 0xff)
#endif
#include "dve2.hh" #include "dve2.hh"
#include "misc/hashfunc.hh" #include "misc/hashfunc.hh"
#include "misc/fixpool.hh" #include "misc/fixpool.hh"