We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bb60ac commit 24397f8Copy full SHA for 24397f8
2 files changed
src/libais/ais.cpp
@@ -4,15 +4,13 @@
4
5
#include "ais.h"
6
7
-extern "C" {
8
int LibAisVersionMajor() {
9
return LIBAIS_VERSION_MAJOR;
10
}
11
12
int LibAisVersionMinor() {
13
return LIBAIS_VERSION_MINOR;
14
15
-} // extern "C"
16
17
namespace libais {
18
src/libais/ais.h
@@ -22,14 +22,12 @@ using std::string;
22
using std::unique_ptr;
23
using std::vector;
24
25
-#define LIBAIS_VERSION_MAJOR 0
26
-#define LIBAIS_VERSION_MINOR 17
+constexpr int LIBAIS_VERSION_MAJOR = 0;
+constexpr int LIBAIS_VERSION_MINOR = 17;
27
28
29
// For configuration scripts to detect libais and the version numbers.
30
int LibAisVersionMajor();
31
int LibAisVersionMinor();
32
-}
33
34
35
0 commit comments