Branch data Line data Source code
1 : : /* 2 : : * Copyright 2022 Collabora Ltd. 3 : : * SPDX-License-Identifier: LGPL-2.1-or-later 4 : : * 5 : : * This library is free software; you can redistribute it and/or 6 : : * modify it under the terms of the GNU Lesser General Public 7 : : * License as published by the Free Software Foundation; either 8 : : * version 2.1 of the License, or (at your option) any later version. 9 : : * 10 : : * This library is distributed in the hope that it will be useful, 11 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 : : * Lesser General Public License for more details. 14 : : * 15 : : * You should have received a copy of the GNU Lesser General 16 : : * Public License along with this library; if not, see 17 : : * <http://www.gnu.org/licenses/>. 18 : : */ 19 : : 20 : : #ifndef GLIB_VERSION_MAX_ALLOWED 21 : : /* This is the oldest version macro available */ 22 : : #define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_26 23 : : #define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_26 24 : : #endif 25 : : 26 : : #include <glib.h> 27 : : 28 : : /* All the headers that can validly be included in third-party code */ 29 : : #include <gio/gio.h> 30 : : #include <gio/gnetworking.h> 31 : : 32 : : #define G_SETTINGS_ENABLE_BACKEND 33 : : #include <gio/gsettingsbackend.h> 34 : : 35 : : #ifdef G_OS_UNIX 36 : : #include <gio/gdesktopappinfo.h> 37 : : #include <gio/gfiledescriptorbased.h> 38 : : #include <gio/gunixconnection.h> 39 : : #include <gio/gunixcredentialsmessage.h> 40 : : #include <gio/gunixfdlist.h> 41 : : #include <gio/gunixfdmessage.h> 42 : : #include <gio/gunixinputstream.h> 43 : : #include <gio/gunixmounts.h> 44 : : #include <gio/gunixoutputstream.h> 45 : : #include <gio/gunixsocketaddress.h> 46 : : #endif 47 : : 48 : : #ifdef G_OS_WIN32 49 : : #include <gio/gwin32inputstream.h> 50 : : #include <gio/gwin32outputstream.h> 51 : : #include <gio/gwin32registrykey.h> 52 : : #endif 53 : : 54 : : #ifdef HAVE_COCOA 55 : : #include <gio/gosxappinfo.h> 56 : : #endif 57 : : 58 : : static void 59 : 1 : nothing (void) 60 : : { 61 : : /* This doesn't really do anything: the real "test" is at compile time. 62 : : * Just make sure the GIO library gets linked. */ 63 : 1 : g_debug ("Loaded %s from GIO library", g_type_name (G_TYPE_CANCELLABLE)); 64 : 1 : } 65 : : 66 : : int 67 : 1 : main (int argc, 68 : : char *argv[]) 69 : : { 70 : 1 : g_test_init (&argc, &argv, NULL); 71 : : 72 : 1 : g_test_add_func ("/max-version/tested-at-compile-time", nothing); 73 : 1 : return g_test_run (); 74 : : }