Check that a supported compiler is used to when compiling c++check

This commit is contained in:
Daniel Marjamäki 2008-10-30 04:45:59 +00:00
parent 7657ac27ce
commit 853fea4541
1 changed files with 14 additions and 1 deletions

View File

@ -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>