X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fwim.c;h=df55562193a9d797f67f697466261bd213b2b897;hb=c3648a1bf94a11ee6eff22cb728f0efe3f4500e9;hp=51fc1f0452c6ddef1c9f87bf38e3e9f55bde0b35;hpb=0ecb0529b5fcacc1abafa1f3f02a40c44783ada8;p=wimlib diff --git a/src/wim.c b/src/wim.c index 51fc1f04..df555621 100644 --- a/src/wim.c +++ b/src/wim.c @@ -23,7 +23,16 @@ # include "config.h" #endif +#include +#include +#ifndef __WIN32__ +# include +#endif +#include +#include + #include "wimlib.h" +#include "wimlib/assert.h" #include "wimlib/bitops.h" #include "wimlib/dentry.h" #include "wimlib/encoding.h" @@ -37,20 +46,10 @@ #include "wimlib/security.h" #include "wimlib/wim.h" #include "wimlib/xml.h" -#include "wimlib/version.h" - #ifdef __WIN32__ # include "wimlib/win32.h" /* for realpath() replacement */ #endif -#include -#include -#ifndef __WIN32__ -# include -#endif -#include -#include - static int wim_default_pack_compression_type(void) { @@ -917,7 +916,9 @@ test_locale_ctype_utf8(void) WIMLIBAPI u32 wimlib_get_version(void) { - return WIMLIB_VERSION_CODE; + return (WIMLIB_MAJOR_VERSION << 20) | + (WIMLIB_MINOR_VERSION << 10) | + WIMLIB_PATCH_VERSION; } static bool lib_initialized = false;