diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2002-08-20 22:56:59 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2002-08-20 22:56:59 +0000 |
commit | 02d46a6f8a4ea2e57af56bbf9afd45a764f302b0 (patch) | |
tree | b8eebb32fc45b5e6ea68052f2da87e382eb89e97 /winsup | |
parent | fe47ea33a95d191dd76e771af90ea2d8f28244ff (diff) | |
download | cygnal-02d46a6f8a4ea2e57af56bbf9afd45a764f302b0.tar.gz cygnal-02d46a6f8a4ea2e57af56bbf9afd45a764f302b0.tar.bz2 cygnal-02d46a6f8a4ea2e57af56bbf9afd45a764f302b0.zip |
* test_headers.c : New file.
* Makefile.in (test_headers): New target, using it,
(SRCDIST_FILES): Distribute it.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/mingw/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/mingw/Makefile.in | 18 | ||||
-rw-r--r-- | winsup/mingw/test_headers.c | 54 |
3 files changed, 77 insertions, 1 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index fb4a23f62..d918469ca 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,9 @@ +2002-08-20 Danny Smith <dannysmith@users.sourceforge.net + + * test_headers.c : New file. + * Makefile.in (test_headers): New target, using it, + (SRCDIST_FILES): Distribute it. + 2002-08-14 Earnie Boyd <earnie@users.sf.net> * include/unistd.h: Add include of process.h. diff --git a/winsup/mingw/Makefile.in b/winsup/mingw/Makefile.in index ddb44fb6e..336369fa7 100644 --- a/winsup/mingw/Makefile.in +++ b/winsup/mingw/Makefile.in @@ -164,7 +164,7 @@ crt1.c crtdll.def crtmt.c crtst.c ctype_old.c dllcrt1.c dllmain.c \ gccmain.c init.c install-sh jamfile main.c mkinstalldirs moldname-crtdll.def \ moldname-msvcrt.def moldname.def moldname.def.in msvcrt.def msvcrt20.def \ msvcrt40.def mthr.c mthr_init.c mthr_stub.c readme.txt string_old.c \ -CRT_fp8.c CRT_fp10.c +CRT_fp8.c CRT_fp10.c test_headers.c all_dlls_host = @all_dlls_host@ install_dlls_host = @install_dlls_host@ @@ -260,6 +260,22 @@ crt1.o dllcrt1.o: crt2.o dllcrt2.o: $(CC) -c -D__MSVCRT__ -U__CRTDLL__ $(ALL_CFLAGS) $< -o $@ +TEST_H_OPTIONS = $(ALL_CFLAGS) -Wall -Wsystem-headers -c \ + $(srcdir)/test_headers.c -o test_headers.o + +.PHONY: test_headers +test_headers: + @echo "Testing runtime headers..." + @for lang in c c++ objective-c ; do \ + echo "$$lang ..."; \ + $(CC) -x$$lang -std=c89 $(TEST_H_OPTIONS) ; \ + echo "$$lang c89 ..."; \ + $(CC) -x$$lang -std=c89 $(TEST_H_OPTIONS) ; \ + echo "$$lang c99..."; \ + $(CC) -x$$lang -std=c99 $(TEST_H_OPTIONS) ; \ + done + @rm -f test_headers.o + clean: -rm -f *.o *.a *~ core a.out mingwthrd.def mingwthrd.base mingwthrd.exp -rm -f $(THREAD_DLL_NAME) mingwthrd_dummy.exe diff --git a/winsup/mingw/test_headers.c b/winsup/mingw/test_headers.c new file mode 100644 index 000000000..4955fdcf1 --- /dev/null +++ b/winsup/mingw/test_headers.c @@ -0,0 +1,54 @@ +#include <_mingw.h> +#include <assert.h> +#include <conio.h> +#include <ctype.h> +#include <dir.h> +#include <direct.h> +#include <dirent.h> +#include <dos.h> +#include <errno.h> +#include <excpt.h> +#include <fcntl.h> +#include <fenv.h> +#include <float.h> +#include <inttypes.h> +#include <io.h> +#include <limits.h> +#include <locale.h> +#include <malloc.h> +#include <math.h> +#include <mbctype.h> +#include <mbstring.h> +#include <mem.h> +#include <memory.h> +#include <process.h> +#include <setjmp.h> +#include <share.h> +#include <signal.h> +#include <stdarg.h> +#include <stddef.h> +#include <stdint.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <strings.h> +#include <tchar.h> +#include <time.h> +#include <unistd.h> +#include <values.h> +#include <varargs.h> +#include <wchar.h> +#include <wctype.h> +#include <sys/fcntl.h> +#include <sys/file.h> +#include <sys/locking.h> +#include <sys/stat.h> +#include <sys/time.h> +#include <sys/timeb.h> +#include <sys/types.h> +#include <sys/unistd.h> +#include <sys/utime.h> + + +int main() +{return 0;} |