00001 /* A dummy file, to prevent empty libraries from breaking builds. 00002 Copyright (C) 2004, 2007 Free Software Foundation, Inc. 00003 00004 This program is free software: you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 3 of the License, or 00007 (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00016 00017 /* Some systems, reportedly OpenBSD and Mac OS X, refuse to create 00018 libraries without any object files. You might get an error like: 00019 00020 > ar cru .libs/libgl.a 00021 > ar: no archive members specified 00022 00023 Compiling this file, and adding its object file to the library, will 00024 prevent the library from being empty. */ 00025 00026 /* Some systems, such as Solaris with cc 5.0, refuse to work with libraries 00027 that don't export any symbol. You might get an error like: 00028 00029 > cc ... libgnu.a 00030 > ild: (bad file) garbled symbol table in archive ../gllib/libgnu.a 00031 00032 Compiling this file, and adding its object file to the library, will 00033 prevent the library from exporting no symbols. */ 00034 00035 #ifdef __sun 00036 /* This declaration ensures that the library will export at least 1 symbol. */ 00037 int gl_dummy_symbol; 00038 #else 00039 /* This declaration is solely to ensure that after preprocessing 00040 this file is never empty. */ 00041 typedef int dummy; 00042 #endif
1.5.6