Fix version.sh compatiblity with Solaris
[xz/debian.git] / src / common / tuklib_exit.h
blobd4e6b4a7e832ba2323b73300ecb4b4845b764d3a
1 // SPDX-License-Identifier: 0BSD
3 ///////////////////////////////////////////////////////////////////////////////
4 //
5 /// \file tuklib_exit.h
6 /// \brief Close stdout and stderr, and exit
7 /// \note Requires tuklib_progname and tuklib_gettext modules
8 //
9 // Author: Lasse Collin
11 ///////////////////////////////////////////////////////////////////////////////
13 #ifndef TUKLIB_EXIT_H
14 #define TUKLIB_EXIT_H
16 #include "tuklib_common.h"
17 TUKLIB_DECLS_BEGIN
19 #define tuklib_exit TUKLIB_SYMBOL(tuklib_exit)
20 tuklib_attr_noreturn
21 extern void tuklib_exit(int status, int err_status, int show_error);
23 TUKLIB_DECLS_END
24 #endif