classes.cpp: Define _XOPEN_SOURCE for isascii()

The GNU libstdc++ headers use isascii(), which is not part of any
POSIX standard. On BSD, this breaks the build. It is however part
of XOPEN, which on Linux is apparently enabled implicitly for C++.

This should fix #649.
This commit is contained in:
Daniel Elstner 2015-09-13 20:12:12 +02:00
parent 56c8705e37
commit 000f504f24
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Needed for isascii(), as used in the GNU libstdc++ headers */
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 600
#endif
#include <config.h>
#include <libsigrokcxx/libsigrokcxx.hpp>