DCurrent / openbor

OpenBOR is the ultimate 2D side scrolling engine for beat em' ups, shooters, and more!
http://www.chronocrash.com
BSD 3-Clause "New" or "Revised" License
894 stars 119 forks source link

fixing mallinfo for glibc 2.33+ #287

Closed msmalik681 closed 7 months ago

msmalik681 commented 7 months ago

Added mallinfo2 for Linux distros running glibc 2.33+

Would appreciate it if @Plombo could review to make sure everything is ok.

msmalik681 commented 7 months ago

@DCurrent I think this should be fine to add and it will only effect the Linux port if Plombo has any issues we can change later.

DCurrent commented 7 months ago

@msmalik681, I had to revert this. After a second check, it fails to compile (missing features.h error).

Plombo commented 6 months ago

I really thought I did this a year or two ago. Apparently not! Anyway, seems good aside from the build issue where features.h is being included on platforms that don't have it.

msmalik681 commented 6 months ago

Yeah figured that was the issue i should be able to quick fix this tomorrow

msmalik681 commented 6 months ago

@Plombo not completely sure on how to wrap features.h. Would it be ?

ifdef __GLIBC__

include

endif

or maybe ?

ifndef WIN

include

endif

or possibly ?

ifdef LINUX

include

endif