]> git.sesse.net Git - vlc/blobdiff - src/version.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / src / version.c
index bc0cbe963687f5c43926a157d7e4fb13900d85f3..0dc70f3184b6369a84a59794b5114138d2052b55 100644 (file)
@@ -28,7 +28,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 
 /*****************************************************************************
  * VLC_Version: return the libvlc version.
@@ -41,22 +41,15 @@ char const * VLC_Version( void )
 }
 
 /*****************************************************************************
- * VLC_CompileBy, VLC_CompileHost, VLC_CompileDomain,
+ * VLC_CompileBy, VLC_CompileHost
  * VLC_Compiler, VLC_Changeset
  *****************************************************************************/
 #define DECLARE_VLC_VERSION( func, var )                                    \
-char const * VLC_##func ( void )                                            \
+const char * VLC_##func ( void )                                            \
 {                                                                           \
     return VLC_##var ;                                                      \
 }
 
-DECLARE_VLC_VERSION( CompileBy, COMPILE_BY );
-DECLARE_VLC_VERSION( CompileHost, COMPILE_HOST );
-DECLARE_VLC_VERSION( CompileDomain, COMPILE_DOMAIN );
-DECLARE_VLC_VERSION( Compiler, COMPILER );
-
-extern const char psz_vlc_changeset[];
-const char* VLC_Changeset( void )
-{
-    return psz_vlc_changeset;
-}
+DECLARE_VLC_VERSION( CompileBy, COMPILE_BY )
+DECLARE_VLC_VERSION( CompileHost, COMPILE_HOST )
+DECLARE_VLC_VERSION( Compiler, COMPILER )