-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
I made a very quick attempt.
makefile_win.zip
with the following errors.
Unfortunately, it wasn't fixable with adding #include <algorithm> and using namespace std; to imgui.cpp
$ make -f makefile_win
g++ -I. -Wall -DUNICODE -D_UNICODE -g -c imgui.cpp -o obj/imgui.o
imgui.cpp: In static member function 'static void Pixie::ImGui::Input(char*, int, int, int, int, int
)':
imgui.cpp:166:46: error: 'min' was not declared in this scope
166 | s_state.keyboardCursorPosition = min((mouseX - textX) / s_state.font->GetCharact
erWidth(), textLength);
| ^~~
imgui.cpp:211:50: error: 'max' was not declared in this scope
211 | s_state.keyboardCursorPosition = max(s_state.keyboardCursorPosition - 1, 0);
| ^~~
imgui.cpp:215:50: error: 'min' was not declared in this scope
215 | s_state.keyboardCursorPosition = min(s_state.keyboardCursorPosition + 1, tex
tLength);
| ^~~
imgui.cpp:278:50: error: 'min' was not declared in this scope
278 | s_state.keyboardCursorPosition = min(s_state.keyboardCursorPosition + 1, tex
tBufferLength);
| ^~~
make: *** [makefile_win:17: obj/imgui.o] Error 1
Metadata
Metadata
Assignees
Labels
No labels