Filip Navara wrote:
David Kredba wrote:
Hello.
I have problems on linux with missing _mingw.h with both gcc-3.4.1
and 3.4.2.
It is probably caused by the last cvs commit to
reactos/include/msvcrt/string.h file.
There is mingw32/include/_mingw.h in the cross compiler directory.
Thanks, David
Does the attached patch help?
Sorry, wrong patch...
- Filip
Index: tools/bin2res/Makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/tools/bin2res/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- tools/bin2res/Makefile 3 Jan 2004 22:25:51 -0000 1.2
+++ tools/bin2res/Makefile 26 Dec 2004 17:28:56 -0000
@@ -8,7 +8,7 @@
CLEAN_FILES = *.o bin2res$(EXE_POSTFIX)
-HOST_CFLAGS = -I$(PATH_TO_TOP)/include/wine -I$(PATH_TO_TOP)/include -D__REACTOS__ -Wall
-Werror
+HOST_CFLAGS = -I$(PATH_TO_TOP)/include/wine -D__REACTOS__ -Wall -Werror
bin2res.o: bin2res.c
$(HOST_CC) -g $(HOST_CFLAGS) -c bin2res.c -o bin2res.o
Index: tools/bin2res/bin2res.c
===================================================================
RCS file: /CVS/ReactOS/reactos/tools/bin2res/bin2res.c,v
retrieving revision 1.2
diff -u -r1.2 bin2res.c
--- tools/bin2res/bin2res.c 2 Aug 2004 07:59:38 -0000 1.2
+++ tools/bin2res/bin2res.c 26 Dec 2004 17:32:14 -0000
@@ -21,7 +21,6 @@
*/
#include "config.h"
-#include "wine/port.h"
#include <stdio.h>
#include <stdlib.h>
@@ -32,6 +31,11 @@
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
+extern int mkstemps(char *template, int suffix_len);
static const char* help =
"Usage: bin2res [OPTIONS] <rsrc.rc>\n"
Index: tools/bin2res/mkstemps.c
===================================================================
RCS file: /CVS/ReactOS/reactos/tools/bin2res/mkstemps.c,v
retrieving revision 1.1
diff -u -r1.1 mkstemps.c
--- tools/bin2res/mkstemps.c 2 Jan 2004 19:49:47 -0000 1.1
+++ tools/bin2res/mkstemps.c 26 Dec 2004 17:28:40 -0000
@@ -17,7 +17,6 @@
Boston, MA 02111-1307, USA. */
#include "config.h"
-#include "wine/port.h"
#include <sys/types.h>
#include <stdlib.h>
Index: tools/winebuild/Makefile
===================================================================
RCS file: /CVS/ReactOS/reactos/tools/winebuild/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- tools/winebuild/Makefile 27 Sep 2004 08:15:07 -0000 1.6
+++ tools/winebuild/Makefile 26 Dec 2004 17:22:04 -0000
@@ -22,7 +22,7 @@
CLEAN_FILES = *.o $(TARGET)
-HOST_CFLAGS = -D__USE_W32API -I$(PATH_TO_TOP)/include -I$(PATH_TO_TOP)/include/wine
-I$(W32API_PATH)/include
+HOST_CFLAGS = -D__USE_W32API -I$(PATH_TO_TOP)/include/wine
%.o: %.c
$(HOST_CC) $(HOST_CFLAGS) -c $< -o $@
Index: tools/winebuild/import.c
===================================================================
RCS file: /CVS/ReactOS/reactos/tools/winebuild/import.c,v
retrieving revision 1.4
diff -u -r1.4 import.c
--- tools/winebuild/import.c 23 Sep 2004 20:27:30 -0000 1.4
+++ tools/winebuild/import.c 26 Dec 2004 17:24:28 -0000
@@ -20,7 +20,6 @@
*/
#include "config.h"
-#include "wine/port.h"
#include <ctype.h>
#include <fcntl.h>
Index: tools/winebuild/main.c
===================================================================
RCS file: /CVS/ReactOS/reactos/tools/winebuild/main.c,v
retrieving revision 1.5
diff -u -r1.5 main.c
--- tools/winebuild/main.c 2 Nov 2004 19:47:18 -0000 1.5
+++ tools/winebuild/main.c 26 Dec 2004 17:25:36 -0000
@@ -23,7 +23,6 @@
*/
#include "config.h"
-#include "wine/port.h"
#include <assert.h>
#include <stdio.h>
Index: tools/winebuild/mkstemps.c
===================================================================
RCS file: /CVS/ReactOS/reactos/tools/winebuild/mkstemps.c,v
retrieving revision 1.1
diff -u -r1.1 mkstemps.c
--- tools/winebuild/mkstemps.c 5 Jan 2004 19:49:59 -0000 1.1
+++ tools/winebuild/mkstemps.c 26 Dec 2004 17:25:40 -0000
@@ -17,7 +17,6 @@
Boston, MA 02111-1307, USA. */
#include "config.h"
-#include "wine/port.h"
#include <sys/types.h>
#include <stdlib.h>
Index: tools/winebuild/parser.c
===================================================================
RCS file: /CVS/ReactOS/reactos/tools/winebuild/parser.c,v
retrieving revision 1.3
diff -u -r1.3 parser.c
--- tools/winebuild/parser.c 23 Sep 2004 20:27:30 -0000 1.3
+++ tools/winebuild/parser.c 26 Dec 2004 17:25:44 -0000
@@ -23,7 +23,6 @@
*/
#include "config.h"
-#include "wine/port.h"
#include <assert.h>
#include <ctype.h>
Index: tools/winebuild/relay.c
===================================================================
RCS file: /CVS/ReactOS/reactos/tools/winebuild/relay.c,v
retrieving revision 1.2
diff -u -r1.2 relay.c
--- tools/winebuild/relay.c 23 Sep 2004 20:27:30 -0000 1.2
+++ tools/winebuild/relay.c 26 Dec 2004 17:25:46 -0000
@@ -23,7 +23,6 @@
*/
#include "config.h"
-#include "wine/port.h"
#include <ctype.h>
Index: tools/winebuild/res16.c
===================================================================
RCS file: /CVS/ReactOS/reactos/tools/winebuild/res16.c,v
retrieving revision 1.3
diff -u -r1.3 res16.c
--- tools/winebuild/res16.c 23 Sep 2004 20:27:30 -0000 1.3
+++ tools/winebuild/res16.c 26 Dec 2004 17:25:52 -0000
@@ -19,7 +19,6 @@
*/
#include "config.h"
-#include "wine/port.h"
#include <ctype.h>
#include <stdlib.h>
Index: tools/winebuild/res32.c
===================================================================
RCS file: /CVS/ReactOS/reactos/tools/winebuild/res32.c,v
retrieving revision 1.3
diff -u -r1.3 res32.c
--- tools/winebuild/res32.c 23 Sep 2004 20:27:30 -0000 1.3
+++ tools/winebuild/res32.c 26 Dec 2004 17:26:00 -0000
@@ -19,7 +19,6 @@
*/
#include "config.h"
-#include "wine/port.h"
#include <ctype.h>
#include <stdlib.h>
Index: tools/winebuild/spec16.c
===================================================================
RCS file: /CVS/ReactOS/reactos/tools/winebuild/spec16.c,v
retrieving revision 1.2
diff -u -r1.2 spec16.c
--- tools/winebuild/spec16.c 23 Sep 2004 20:27:30 -0000 1.2
+++ tools/winebuild/spec16.c 26 Dec 2004 17:32:36 -0000
@@ -23,7 +23,6 @@
*/
#include "config.h"
-#include "wine/port.h"
#include <assert.h>
#include <ctype.h>
Index: tools/winebuild/spec32.c
===================================================================
RCS file: /CVS/ReactOS/reactos/tools/winebuild/spec32.c,v
retrieving revision 1.8
diff -u -r1.8 spec32.c
--- tools/winebuild/spec32.c 24 Nov 2004 20:11:52 -0000 1.8
+++ tools/winebuild/spec32.c 26 Dec 2004 17:26:04 -0000
@@ -23,7 +23,6 @@
*/
#include "config.h"
-#include "wine/port.h"
#include <assert.h>
#include <ctype.h>
Index: tools/winebuild/utils.c
===================================================================
RCS file: /CVS/ReactOS/reactos/tools/winebuild/utils.c,v
retrieving revision 1.3
diff -u -r1.3 utils.c
--- tools/winebuild/utils.c 23 Sep 2004 20:27:30 -0000 1.3
+++ tools/winebuild/utils.c 26 Dec 2004 17:26:12 -0000
@@ -19,7 +19,6 @@
*/
#include "config.h"
-#include "wine/port.h"
#if !defined(WIN32)
#undef strdup