Skip to content

Commit

Permalink
Avoid problems with GNU major/minor function macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Oct 14, 2023
1 parent 29e9107 commit 8d5502e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.24)

project(uzuki2
VERSION 1.1.3
VERSION 1.1.4
DESCRIPTION "Storing simple R lists inside HDF5 or JSON"
LANGUAGES CXX)

Expand Down
5 changes: 4 additions & 1 deletion include/uzuki2/Version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ struct Version {
* @cond
*/
Version() = default;
Version(int maj, int min) : major(maj), minor(min) {}
Version(int maj, int min) {
major = maj;
minor = min;
}
/**
* @endcond
*/
Expand Down

0 comments on commit 8d5502e

Please sign in to comment.