Skip to content

Commit

Permalink
Change include from obsolete malloc.h to stdlib.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jgriffitts committed May 24, 2024
1 parent bdb03ac commit f35be28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.0)
set(CFLTK_PROJECT_VERSION 1.4.30)

project(
Expand Down
2 changes: 1 addition & 1 deletion src/cfl_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ const unsigned Fl_Terminal_Utf8Char_size(void) {
GROUP_DEFINE(Fl_Terminal)


#include <malloc.h>
#include <stdlib.h>
// Free up string that was allocated in C++
void Fl_free_str(const char *str) {
if (str) free((void *) str);
Expand Down

0 comments on commit f35be28

Please sign in to comment.