Avoid potential negative array index access to cached text.
[LibreOffice.git] / embedserv / source / inc / stdafx.h
blob44b79de4e60090bcee6165bc69d8c6a9cb1540d9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 #if !defined(AFX_STDAFX_H_)
3 #define AFX_STDAFX_H_
5 #define STRICT
6 #define _ATL_APARTMENT_THREADED
7 // #define _ATL_STATIC_REGISTRY
9 #ifdef _MSC_VER
10 #if defined __clang__
11 #pragma clang diagnostic push
12 #pragma clang diagnostic ignored "-Wall"
13 #pragma clang diagnostic ignored "-Wattributes"
14 #pragma clang diagnostic ignored "-Wdelete-incomplete"
15 #pragma clang diagnostic ignored "-Wdynamic-class-memaccess"
16 #pragma clang diagnostic ignored "-Wextra"
17 #pragma clang diagnostic ignored "-Wint-to-pointer-cast"
18 #pragma clang diagnostic ignored "-Winvalid-noreturn"
19 #pragma clang diagnostic ignored "-Wmicrosoft"
20 #pragma clang diagnostic ignored "-Wnon-pod-varargs"
21 #pragma clang diagnostic ignored "-Wnonportable-include-path"
22 #pragma clang diagnostic ignored "-Wsequence-point"
23 #pragma clang diagnostic ignored "-Wtypename-missing"
24 #endif
25 #endif
26 #include <atlbase.h>
27 #if defined max
28 #undef max
29 #endif
30 #if defined min
31 #undef min
32 #endif
33 //You may derive a class from CComModule and use it if you want to override
34 //something, but do not change the name of _Module
35 extern CComModule _Module;
36 #include <atlcom.h>
37 #include <atlctl.h>
39 //{{AFX_INSERT_LOCATION}}
40 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
42 #ifdef _MSC_VER
43 #if defined __clang__
44 #pragma clang diagnostic pop
45 #endif
46 #endif
48 #endif
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */