LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / include / vcl / glxtestprocess.hxx
blobc8668a69d50fc33bfdd70699a0d0cb3b398dd0a0
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
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/.
8 */
10 #pragma once
12 #include <sal/config.h>
13 #include <config_features.h>
15 #if defined(UNX) && !defined MACOSX && !defined IOS && !defined ANDROID && HAVE_FEATURE_UI \
16 && HAVE_FEATURE_OPENGL
17 /* Run test for OpenGL support in own process to avoid crash with broken
18 * OpenGL drivers. Start process as early as possible.
19 * The process will be reaped late in Desktop::Main (desktop/source/app/app.cxx).
22 bool fire_glxtest_process();
24 void reap_glxtest_process();
26 #else
28 inline bool fire_glxtest_process() { return true; }
30 inline void reap_glxtest_process() {}
32 #endif
34 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */