khtml compilation broken

Ralf Habacker ralf.habacker at freenet.de
Sun May 6 14:41:34 CEST 2007


Andreas Pakulat schrieb:
> Hi,
>
> compilation fails for me in khtml because alloca is not declared. There
> have been include fixes done in the render_text.cpp but even after
> re-ading the #include malloc stuff I still can't compile. So there must
> be something different.
>
> Anybody with an idea?
>   
on win32 alloca is defined in malloc.h, not in stdlib.h see 
http://www.pronix.de/pronix-760.html

may be it would be possible to use the following term in render_text.cpp

#ifdef HAVE_ALLOCA_H
// explicitly included for systems that don't provide it in stdlib.h
#include <alloca.h>
#else
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#else
#include <stdlib.h>
#endif
#endif

Ralf




More information about the Kde-windows mailing list