]> icculus.org git repositories - icculus/xz.git/blob - src/liblzma/common/init.c
Oh well, big messy commit again. Some highlights:
[icculus/xz.git] / src / liblzma / common / init.c
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file       init.c
4 /// \brief      Static internal initializations
5 ///
6 /// The initializations have been splitted to so many small files to prevent
7 /// an application needing only decoder functions from statically linking
8 /// also the encoder functions.
9 //
10 //  Copyright (C) 2007 Lasse Collin
11 //
12 //  This library is free software; you can redistribute it and/or
13 //  modify it under the terms of the GNU Lesser General Public
14 //  License as published by the Free Software Foundation; either
15 //  version 2.1 of the License, or (at your option) any later version.
16 //
17 //  This library is distributed in the hope that it will be useful,
18 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
19 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20 //  Lesser General Public License for more details.
21 //
22 ///////////////////////////////////////////////////////////////////////////////
23
24 #include "common.h"
25
26
27 extern LZMA_API void
28 lzma_init(void)
29 {
30 #ifdef HAVE_ENCODER
31         lzma_init_encoder();
32 #endif
33
34 #ifdef HAVE_DECODER
35         lzma_init_decoder();
36 #endif
37
38         return;
39 }