summaryrefslogtreecommitdiff
path: root/cord
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-12-27 12:03:29 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-12-27 13:35:49 +0300
commitd2eae963091ddb2591f4fddfdbb8c922ff2c5220 (patch)
treebcfdedbfb7438a918b8e0379466d360ad683d19b /cord
parente3d384202af9bc2fa5d3c514ce8a31ffcf77b70c (diff)
downloadbdwgc-d2eae963091ddb2591f4fddfdbb8c922ff2c5220.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.c10
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 */