diff options
author | denplusplus <[email protected]> | 2022-02-10 16:47:34 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:34 +0300 |
commit | 57c20d143e8a438cd76b9fdc3ca2e8ee3ac1f32a (patch) | |
tree | cc63639f8e502db19a82c20e2861c6d1edbf9fea /contrib/libs/libidn/version.c | |
parent | 464ba3814a83db4f2d5327393b0b6eaf0c86bfd7 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/libidn/version.c')
-rw-r--r-- | contrib/libs/libidn/version.c | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/contrib/libs/libidn/version.c b/contrib/libs/libidn/version.c index df72d11c2a9..69e5af6bf1c 100644 --- a/contrib/libs/libidn/version.c +++ b/contrib/libs/libidn/version.c @@ -1,49 +1,49 @@ -/* version.c --- Version handling. - * Copyright (C) 2002, 2003, 2004, 2006, 2007 Simon Josefsson - * - * This file is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This file is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this file; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - * - */ - -#ifdef HAVE_CONFIG_H +/* version.c --- Version handling. + * Copyright (C) 2002, 2003, 2004, 2006, 2007 Simon Josefsson + * + * This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this file; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + * + */ + +#ifdef HAVE_CONFIG_H # include "idn_config.h" -#endif - -#include "stringprep.h" - -#include <strverscmp.h> - -/** - * stringprep_check_version - check for library version - * @req_version: Required version number, or NULL. - * - * Check that the the version of the library is at minimum the requested one - * and return the version string; return NULL if the condition is not - * satisfied. If a NULL is passed to this function, no check is done, - * but the version string is simply returned. - * - * See %STRINGPREP_VERSION for a suitable @req_version string. - * - * Return value: Version string of run-time library, or NULL if the - * run-time library does not meet the required version number. - */ -const char * -stringprep_check_version (const char *req_version) -{ - if (!req_version || strverscmp (req_version, PACKAGE_VERSION) <= 0) - return PACKAGE_VERSION; - - return NULL; -} +#endif + +#include "stringprep.h" + +#include <strverscmp.h> + +/** + * stringprep_check_version - check for library version + * @req_version: Required version number, or NULL. + * + * Check that the the version of the library is at minimum the requested one + * and return the version string; return NULL if the condition is not + * satisfied. If a NULL is passed to this function, no check is done, + * but the version string is simply returned. + * + * See %STRINGPREP_VERSION for a suitable @req_version string. + * + * Return value: Version string of run-time library, or NULL if the + * run-time library does not meet the required version number. + */ +const char * +stringprep_check_version (const char *req_version) +{ + if (!req_version || strverscmp (req_version, PACKAGE_VERSION) <= 0) + return PACKAGE_VERSION; + + return NULL; +} |