1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #include <sal/config.h>
12 #include <osl/endian.h>
14 #if defined OSL_BIGENDIAN || defined OSL_LITENDIAN
25 #if !defined OSL_BIGENDIAN
27 // expected-error@-1 {{macro 'OSL_BIGENDIAN' defined in addition to 'OSL_LITENDIAN' [loplugin:oslendian]}}
28 // expected-note@osl/endian.h:* {{conflicting macro definition is here [loplugin:oslendian]}}
31 #if !defined OSL_LITENDIAN
33 // expected-error@-1 {{macro 'OSL_LITENDIAN' defined in addition to 'OSL_BIGENDIAN' [loplugin:oslendian]}}
34 // expected-note@osl/endian.h:* {{conflicting macro definition is here [loplugin:oslendian]}}
37 #if defined OSL_BIGENDIAN
39 // expected-error@-1 {{macro 'OSL_BIGENDIAN' undefinition [loplugin:oslendian]}}
42 #if defined OSL_LITENDIAN
44 // expected-error@-1 {{macro 'OSL_LITENDIAN' undefinition [loplugin:oslendian]}}
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */