Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ option(BUILD_SHARED_LIBS "Build using shared libraries" OFF)
if(NOT BUILD_STATIC_LIBS AND NOT BUILD_SHARED_LIBS)
message(FATAL_ERROR "At least one of BUILD_SHARED_LIBS or BUILD_STATIC_LIBS must be ON.")
endif()
option(USE_64BIT_INTEGERS "Use 64-bit integers" OFF)
if(USE_64BIT_INTEGERS)
add_compile_definitions(USE_64BIT_INTEGERS)
endif()

# determine whether a Fortran compiler is required, based on the available optional dependencies
find_library(HSL hsl)
Expand Down
15 changes: 15 additions & 0 deletions uno/integer_type/integer_type.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) 2025 Charlie Vanaret
// Licensed under the MIT license. See LICENSE file in the project directory for details.

#ifndef UNO_INTEGERTYPE_H
#define UNO_INTEGERTYPE_H

#include <cstdint>

#ifdef USE_64BIT_INTEGERS
using UnoInt = int64_t;
#else
using UnoInt = int32_t;
#endif

#endif // UNO_INTEGERTYPE_H
Loading