diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-12-27 12:03:29 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2019-01-28 09:59:57 +0300 |
commit | e3502c3bfd736c7054178f04b4fd789f1e03d00a (patch) | |
tree | 9c2536edac84b12bc84e29a502d282dca570146c /cord | |
parent | de25c73740d9dbab319d011e68112f4f21206078 (diff) | |
download | bdwgc-e3502c3bfd736c7054178f04b4fd789f1e03d00a.tar.gz |
Support de_win.c compilation by Makefile.direct (cord/de)
* Makefile.direct (cord/de): Add dependency on de_win.c and de_win.h;
compile cord/tests/de_win.c (in case of if_not_there case).
* cord/tests/de_win.c [!__BORLANDC__ && !__CYGWIN__ && !__MINGW32__
&& !__NT__ && !_WIN32 && !WIN32]: Skip the whole file (compile
"extern int GC_quiet" instead).
Diffstat (limited to 'cord')
-rw-r--r-- | cord/tests/de_win.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cord/tests/de_win.c b/cord/tests/de_win.c index a41eb3d7..2d2c528d 100644 --- a/cord/tests/de_win.c +++ b/cord/tests/de_win.c @@ -18,6 +18,8 @@ * * This was written by a nonexpert windows programmer. */ +#if defined(__BORLANDC__) || defined(__CYGWIN__) || defined(__MINGW32__) \ + || defined(__NT__) || defined(_WIN32) || defined(WIN32) #ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN 1 @@ -375,3 +377,11 @@ void invalidate_line(int i) get_line_rect(i, COLS*char_width, &line_r); InvalidateRect(hwnd, &line_r, FALSE); } + +#else + + extern int GC_quiet; + /* ANSI C doesn't allow translation units to be empty. */ + /* So we guarantee this one is nonempty. */ + +#endif /* !WIN32 */ |