kdewin_global_win.h

Peter Kümmel syntheticpp at gmx.net
Fri Feb 3 13:02:59 CET 2006


Christian Ehrlicher wrote:
>> Christian Ehrlicher wrote:
>>
>>> Peter Kümmel schrieb:
>>>> To circumvent (temporary) the configure problems we could add the
>>>> relevant #defines  to kdewin_global_win.h, they are not the first ones:
>>>>
>>> kdelibs_global_win.h is outdated and we're working on restructuring
>>> kdelibs/win.
>>> For now - don't include this header anymore (and don't use /FI anymore
>>> with msvc because it works without too)
>>> Also don't include kdelibs_export_win.h but kdelibs_export.h.
>>>
>>> Christian
>>>
>> Is dcop actually compilable?
>> If not I could saves my time and energy.
>> Peter
> I think yes - the only thing you maybe hit is the undefined reference to
> _snprintf because nmake doesn't recompile XTrans.c with the new
> win/include/stdio.h
> 
> Christian
> 
This helps:

Index: msvc/stdio.h
===================================================================
--- msvc/stdio.h	(Revision 505179)
+++ msvc/stdio.h	(Arbeitskopie)
@@ -25,7 +25,12 @@
 /* regular header from msvc includes */
 # include <../include/stdio.h>

-#define snprintf _snprintf
-#define vsnprintf _vsnprintf
+#if defined(_MSC_VER) && (_MSC_VER>=1400)
+	#define snprintf _snprintf_s
+	#define vsnprintf _vsnprintf_s
+#else
+	#define snprintf _snprintf
+	#define vsnprintf _vsnprintf
+#endif

 #endif	// KDE_STDIO_H


Peter


More information about the Kde-buildsystem mailing list