Skip to content

Commit

Permalink
Fix compilation for cmake / pure C++
Browse files Browse the repository at this point in the history
  • Loading branch information
davetcc committed Oct 12, 2024
1 parent 923dcee commit 66732a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/TaskManagerIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ void TaskManager::setInterruptCallback(InterruptFn handler) {
}

char* TaskManager::checkAvailableSlots(char* data, size_t dataSize) const {
auto maxLen = min(taskid_t(dataSize - 1), taskBlocks[numberOfBlocks - 1]->lastSlot());
auto maxLen = internal_min(taskid_t(dataSize - 1), taskBlocks[numberOfBlocks - 1]->lastSlot());
size_t position = 0;

for(taskid_t i=0; i<numberOfBlocks;i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/TaskPlatformDeps.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ typedef uint32_t sched_t;
#endif // GCC>=5 and !TM_ALLOW_CAPTURED_LAMBDA

#ifndef internal_min
#define internal_min(a, b) ((a) > (b) ? (b) : (a));
#define internal_min(a, b) ((a) > (b) ? (b) : (a))
#endif // internal_min

#ifndef internal_max
Expand Down

0 comments on commit 66732a1

Please sign in to comment.