Changeset 3156 for trunk/src/kmk/read.c
- Timestamp:
- Mar 18, 2018, 9:10:03 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/read.c
r3145 r3156 33 33 #ifdef WINDOWS32 34 34 #include <windows.h> 35 #include "sub_proc.h" 35 # ifndef _MSC_VER 36 # ifndef CONFIG_NEW_WIN_CHILDREN 37 # include "sub_proc.h" 38 # else 39 # include "w32/winchildren.h" 40 # endif 41 # endif 36 42 #else /* !WINDOWS32 */ 37 43 #ifndef _AMIGA … … 423 429 } 424 430 431 #ifdef _MSC_VER 432 ENULLLOOP (ebuf.fp, fopen (filename, "rN")); /* N == noinherit */ 433 #else 425 434 ENULLLOOP (ebuf.fp, fopen (filename, "r")); 435 #endif 426 436 427 437 /* Save the error code so we print the right message later. */ … … 454 464 const char *included = concat (3, include_directories[i], 455 465 "/", filename); 466 #ifdef _MSC_VER 467 ebuf.fp = fopen (included, "rN"); /* N == noinherit */ 468 #else 456 469 ebuf.fp = fopen (included, "r"); 470 #endif 457 471 if (ebuf.fp) 458 472 { … … 496 510 /* Set close-on-exec to avoid leaking the makefile to children, such as 497 511 $(shell ...). */ 512 #ifndef _MSC_VER /* not necessary, see fopen calls above. */ 498 513 #ifdef HAVE_FILENO 499 514 CLOSE_ON_EXEC (fileno (ebuf.fp)); 515 #endif 500 516 #endif 501 517
Note:
See TracChangeset
for help on using the changeset viewer.