diff options
| author | Eli Zaretskii | 2013-03-31 17:04:49 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-03-31 17:04:49 +0300 |
| commit | a74b0e1bdf0f2f49bce82dd7e15264c5c548d980 (patch) | |
| tree | 298164fad366b018ea71d2b0c791dd3442b43f02 /lib-src | |
| parent | 65d72c1bf862d339d72d760e7ac8ccbc4837f06b (diff) | |
| download | emacs-a74b0e1bdf0f2f49bce82dd7e15264c5c548d980.tar.gz emacs-a74b0e1bdf0f2f49bce82dd7e15264c5c548d980.zip | |
Added nt/gnulib.mk and removed kludges from ms-w32.h and ntlib.h.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/Makefile.in | 12 | ||||
| -rw-r--r-- | lib-src/ntlib.c | 14 |
2 files changed, 6 insertions, 20 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 903dbfcf7b9..5e40c2555cf 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -171,7 +171,7 @@ LIBS_MOVE = $(LIBS_MAIL) $(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) \ | |||
| 171 | $(COM_ERRLIB) $(LIBHESIOD) $(LIBRESOLV) | 171 | $(COM_ERRLIB) $(LIBHESIOD) $(LIBRESOLV) |
| 172 | 172 | ||
| 173 | ## Extra object files for linking emacsclient | 173 | ## Extra object files for linking emacsclient |
| 174 | NTLIB_O = @NTLIB_O@ | 174 | NTLIB = @NTLIB@ |
| 175 | 175 | ||
| 176 | ## Some systems define this to request special libraries. | 176 | ## Some systems define this to request special libraries. |
| 177 | LIBS_SYSTEM = @LIBS_SYSTEM@ | 177 | LIBS_SYSTEM = @LIBS_SYSTEM@ |
| @@ -331,15 +331,15 @@ make-docfile${EXEEXT}: ${srcdir}/make-docfile.c $(config_h) | |||
| 331 | $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) \ | 331 | $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) \ |
| 332 | -o make-docfile${EXEEXT} | 332 | -o make-docfile${EXEEXT} |
| 333 | 333 | ||
| 334 | movemail${EXEEXT}: ${srcdir}/movemail.c pop.o $(NTLIB_O) $(config_h) | 334 | movemail${EXEEXT}: ${srcdir}/movemail.c pop.o $(NTLIB) $(config_h) |
| 335 | $(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c pop.o \ | 335 | $(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c pop.o \ |
| 336 | $(NTLIB_O) $(LIB_WSOCK32) $(LOADLIBES) $(LIBS_MOVE) \ | 336 | $(NTLIB) $(LIB_WSOCK32) $(LOADLIBES) $(LIBS_MOVE) \ |
| 337 | -o movemail${EXEEXT} | 337 | -o movemail${EXEEXT} |
| 338 | 338 | ||
| 339 | pop.o: ${srcdir}/pop.c ${srcdir}/../lib/min-max.h $(config_h) | 339 | pop.o: ${srcdir}/pop.c ${srcdir}/../lib/min-max.h $(config_h) |
| 340 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c | 340 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c |
| 341 | 341 | ||
| 342 | emacsclient${EXEEXT}: ${srcdir}/emacsclient.c $(NTLIB_O) $(config_h) | 342 | emacsclient${EXEEXT}: ${srcdir}/emacsclient.c $(NTLIB) $(config_h) |
| 343 | $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c \ | 343 | $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c \ |
| 344 | -DVERSION="\"${version}\"" $(LIB_WSOCK32) \ | 344 | -DVERSION="\"${version}\"" $(LIB_WSOCK32) \ |
| 345 | $(LOADLIBES) $(LIB_FDATASYNC) -o emacsclient${EXEEXT} | 345 | $(LOADLIBES) $(LIB_FDATASYNC) -o emacsclient${EXEEXT} |
| @@ -350,9 +350,9 @@ ntlib.o: ${srcdir}/ntlib.c ${srcdir}/ntlib.h | |||
| 350 | hexl${EXEEXT}: ${srcdir}/hexl.c $(config_h) | 350 | hexl${EXEEXT}: ${srcdir}/hexl.c $(config_h) |
| 351 | $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl${EXEEXT} | 351 | $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl${EXEEXT} |
| 352 | 352 | ||
| 353 | update-game-score${EXEEXT}: ${srcdir}/update-game-score.c $(NTLIB_O) $(config_h) | 353 | update-game-score${EXEEXT}: ${srcdir}/update-game-score.c $(NTLIB) $(config_h) |
| 354 | $(CC) ${ALL_CFLAGS} -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \ | 354 | $(CC) ${ALL_CFLAGS} -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \ |
| 355 | ${srcdir}/update-game-score.c $(NTLIB_O) $(LOADLIBES) \ | 355 | ${srcdir}/update-game-score.c $(NTLIB) $(LOADLIBES) \ |
| 356 | -o update-game-score${EXEEXT} | 356 | -o update-game-score${EXEEXT} |
| 357 | 357 | ||
| 358 | ## Makefile ends here. | 358 | ## Makefile ends here. |
diff --git a/lib-src/ntlib.c b/lib-src/ntlib.c index 9dbfda90e00..41b4e3a0cbc 100644 --- a/lib-src/ntlib.c +++ b/lib-src/ntlib.c | |||
| @@ -20,20 +20,6 @@ GNU General Public License for more details. | |||
| 20 | You should have received a copy of the GNU General Public License | 20 | You should have received a copy of the GNU General Public License |
| 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 22 | 22 | ||
| 23 | #ifdef __MINGW32__ | ||
| 24 | /* A kludge to avoid including header files in lib/. They cannot be | ||
| 25 | configured-out, and their stuff interferes with what we have | ||
| 26 | defined in this header and in other headers in nt/inc. Yuck! */ | ||
| 27 | #define __need_system_fcntl_h | ||
| 28 | #define _GL_FCNTL_H | ||
| 29 | #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H | ||
| 30 | #define _GL_ALREADY_INCLUDING_SIGNAL_H | ||
| 31 | #define _GL_ALREADY_INCLUDING_STDIO_H | ||
| 32 | #define __need_system_stdlib_h | ||
| 33 | #define _GL_TIME_H | ||
| 34 | #define __need_system_sys_stat_h | ||
| 35 | #endif | ||
| 36 | |||
| 37 | #include <windows.h> | 23 | #include <windows.h> |
| 38 | #include <stdlib.h> | 24 | #include <stdlib.h> |
| 39 | #include <stdio.h> | 25 | #include <stdio.h> |