]> granicus.if.org Git - liblinear/commitdiff
Add version number for LIBLINEAR
authorHsin-Yuan Huang <momohuang@Hsin-Yuans-iMac.local>
Mon, 13 Mar 2017 13:03:13 +0000 (21:03 +0800)
committerHsin-Yuan Huang <momohuang@Hsin-Yuans-iMac.local>
Mon, 13 Mar 2017 13:03:13 +0000 (21:03 +0800)
linear.cpp
linear.h

index 5136261c8d972110e2f91ed89bddfba0510e4056..0eae131634960c710422f5b7b0d56aa26951f7c3 100644 (file)
@@ -6,6 +6,7 @@
 #include <locale.h>
 #include "linear.h"
 #include "tron.h"
+int liblinear_version = LIBLINEAR_VERSION;
 typedef signed char schar;
 template <class T> static inline void swap(T& x, T& y) { T t=x; x=y; y=t; }
 #ifndef min
index b6086dadfe93889dabc46979fb0c702cc6eff9e2..06b682a059672bbf279f03e7f2d9893e22da5661 100644 (file)
--- a/linear.h
+++ b/linear.h
@@ -1,10 +1,14 @@
 #ifndef _LIBLINEAR_H
 #define _LIBLINEAR_H
 
+#define LIBLINEAR_VERSION 211
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+extern int liblinear_version;
+
 struct feature_node
 {
        int index;