|
@@ -98,6 +98,13 @@ extern IMGUI_API ImGuiContext* GImGui; // Current implicit ImGui context pointe
|
|
|
#define IM_NEWLINE "\n"
|
|
|
#endif
|
|
|
|
|
|
+// Enforce cdecl calling convention for functions called by the standard library, in case compilation settings changed the default to e.g. __vectorcall
|
|
|
+#ifdef _MSC_VER
|
|
|
+#define IMGUI_CDECL __cdecl
|
|
|
+#else
|
|
|
+#define IMGUI_CDECL
|
|
|
+#endif
|
|
|
+
|
|
|
// Helpers: UTF-8 <> wchar
|
|
|
IMGUI_API int ImTextStrToUtf8(char* buf, int buf_size, const ImWchar* in_text, const ImWchar* in_text_end); // return output UTF-8 bytes count
|
|
|
IMGUI_API int ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end); // return input UTF-8 bytes count
|