Skip to content

Commit

Permalink
remove OOAPI specifier from enum to allow windows debug builds to lin…
Browse files Browse the repository at this point in the history
…k successfully
  • Loading branch information
jere8184 committed Jan 22, 2025
1 parent 6d9d8d7 commit b8d05f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildsystem/cythonize.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def main():

# build cython modules (emits shared libraries)
cythonize_args = {
'compiler_directives': {'language_level': 3},
'compiler_directives': {'language_level': 3, 'debug': 1},
'build_dir': args.build_dir,
'include_path': [args.build_dir],
'nthreads': args.threads
Expand Down
2 changes: 1 addition & 1 deletion libopenage/util/compiler.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2014-2024 the openage authors. See copying.md for legal info.
// Copyright 2014-2025 the openage authors. See copying.md for legal info.

#pragma once

Expand Down
4 changes: 2 additions & 2 deletions libopenage/util/enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace util {
* NumericType numeric
*/
template <typename DerivedType, typename NumericType = int>
class OAAPI EnumValue {
class EnumValue {
public:
constexpr EnumValue(const char *value_name, NumericType numeric_value) :
name(value_name), numeric(numeric_value) {}
Expand Down Expand Up @@ -124,7 +124,7 @@ class OAAPI EnumValue {
* bool operator >=(Enum[DerivedType] other) except +
*/
template <typename DerivedType>
class OAAPI Enum {
class Enum {
using this_type = Enum<DerivedType>;

public:
Expand Down

0 comments on commit b8d05f1

Please sign in to comment.