DEVTOOLS: Make Coverity happy.

This is mainly due to unhandled clang __has_featrure() buit-in.
I do not like this hack, but Coverity proved to be a very good tool for us.
This commit is contained in:
Eugene Sandulenko 2013-09-27 12:28:25 +03:00
parent 8053989dd1
commit ca5804a253
6 changed files with 15 additions and 6 deletions

View file

@ -20,6 +20,10 @@
*
*/
#ifndef __has_feature // Optional of course.
#define __has_feature(x) 0 // Compatibility with non-clang compilers.
#endif
#include <fstream>
#include <string>
#include <stdio.h>

View file

@ -33,10 +33,6 @@
#undef main
#endif // main
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common/endian.h"
#include "create_mortdat.h"
#include "enginetext.h"

View file

@ -30,8 +30,8 @@
#undef main
#endif // main
#include <vector>
#include "create_neverhood.h"
#include <vector>
#include "md5.h"
#include "tables.h"

View file

@ -23,6 +23,10 @@
#ifndef TOOLS_CREATE_PROJECT_H
#define TOOLS_CREATE_PROJECT_H
#ifndef __has_feature // Optional of course.
#define __has_feature(x) 0 // Compatibility with non-clang compilers.
#endif
#include <map>
#include <list>
#include <string>

View file

@ -22,6 +22,8 @@
* The generated files is used by ScummVM to propose translation of its GUI.
*/
#include "create_translations.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -34,7 +36,6 @@
#undef main
#endif // main
#include "create_translations.h"
#include "po_parser.h"
#include "cp_parser.h"

View file

@ -28,4 +28,8 @@ typedef unsigned short uint16;
typedef unsigned int uint32;
typedef signed short int16;
#ifndef __has_feature // Optional of course.
#define __has_feature(x) 0 // Compatibility with non-clang compilers.
#endif
#endif /* CREATE_TRANSLATIONS_H */