Check that a supported compiler is used to when compiling c++check
This commit is contained in:
parent
7657ac27ce
commit
853fea4541
15
main.cpp
15
main.cpp
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* c++check - c/c++ syntax checking
|
* c++check - c/c++ syntax checking
|
||||||
* Copyright (C) 2007 Daniel Marjamäki
|
* Copyright (C) 2007 Daniel Marjamäki
|
||||||
*
|
*
|
||||||
|
@ -32,6 +32,19 @@
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
|
|
||||||
|
// Check that the compiler are supported
|
||||||
|
// This program should be compiled with either GCC/BORLAND/MSC to work..
|
||||||
|
#ifndef __GNUC__
|
||||||
|
#ifndef __BORLANDC__
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
#error "C++Check must be compiled by either GCC/BORLAND/MSC to work fully.\n"
|
||||||
|
#error "Please report that you couldn't compile c++check through the web page:\n"
|
||||||
|
#error " https://sourceforge.net/projects/cppcheck/"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#include <glob.h>
|
#include <glob.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
Loading…
Reference in New Issue