[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] master 9fcaaa0: * src/ttdebug.c: Fix compilation on Wi
From: |
Alexei Podtelezhnikov |
Subject: |
[freetype2-demos] master 9fcaaa0: * src/ttdebug.c: Fix compilation on Windows. |
Date: |
Sat, 21 Oct 2017 23:33:13 -0400 (EDT) |
branch: master
commit 9fcaaa092391dfc8ec027eeef250c6058e0ff82e
Author: Alexei Podtelezhnikov <address@hidden>
Commit: Alexei Podtelezhnikov <address@hidden>
* src/ttdebug.c: Fix compilation on Windows.
---
ChangeLog | 6 +++++-
src/ttdebug.c | 6 ++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index bebc497..b428c0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
-2017-10-10 Alexei Podtelezhnikov <address@hidden>
+2017-10-21 Alexei Podtelezhnikov <address@hidden>
+
+ * src/ttdebug.c: Fix compilation on Windows.
+
+2017-10-17 Alexei Podtelezhnikov <address@hidden>
* src/ftgrid.c: Use integer for `scale'. Other tweaks.
diff --git a/src/ttdebug.c b/src/ttdebug.c
index 7f37fc6..5dd3549 100644
--- a/src/ttdebug.c
+++ b/src/ttdebug.c
@@ -41,10 +41,12 @@
/* Define the `getch()' function. On Unix systems, it is an alias */
/* for `getchar()', and the debugger front end must ensure that the */
/* `stdin' file descriptor is not in line-by-line input mode. */
-#ifndef UNIX
+#ifdef _WIN32
#include <conio.h>
+#define snprintf _snprintf
+#define getch _getch
#else
-#define getch getchar
+#define getch getchar
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] master 9fcaaa0: * src/ttdebug.c: Fix compilation on Windows.,
Alexei Podtelezhnikov <=