Merge pull request #38 from FreeBirdLjj/issue#16
authorMichael Göhler <somebody.here@gmx.de>
Sat, 27 Sep 2014 10:24:02 +0000 (12:24 +0200)
committerMichael Göhler <somebody.here@gmx.de>
Sat, 27 Sep 2014 10:24:02 +0000 (12:24 +0200)
Issue#16

Makefile
README.md
include/main.h
src/Makefile
src/viewer.c

index f922b7e..5801f84 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,9 +18,9 @@
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
 #
 
-OSTYPE  := $(shell uname -o)
 CURSES   = ncursesw
 ifeq (Windows_NT, $(OS))
+OSTYPE  := $(shell uname -o)
 ifneq (Cygwin, $(OSTYPE))
 CURSES  := pdcurses
 endif
index 9bb7d8a..cbf3326 100644 (file)
--- a/README.md
+++ b/README.md
@@ -9,7 +9,8 @@
 
 mdp needs the ncursesw headers to compile.
 So make sure you have them installed:
-- On Ubuntu/Debian you need `libncursesw5` and `libncursesw5-dev` to be installed.
+- on Ubuntu/Debian you need `libncursesw5` and `libncursesw5-dev`
+- on Cygwin you need `libncursesw10` and `libncurses-devel`
 
 Now download and install mdp:
 
index 05d05f4..0e65cd3 100644 (file)
@@ -25,6 +25,6 @@
 
 #define MDP_VER_MAJOR 0
 #define MDP_VER_MINOR 91
-#define MDP_VER_REVISION 1
+#define MDP_VER_REVISION 2
 
 #endif // !defined( MAIN_H )
index f0783e9..42d5563 100644 (file)
@@ -26,8 +26,8 @@ ifeq ($(DEBUG),1)
 CFLAGS  := -O0 -Wall -g -I../include
 endif
 
-OSTYPE  := $(shell uname -o)
 ifeq (Windows_NT, $(OS))
+OSTYPE  := $(shell uname -o)
 ifneq (Cygwin, $(OSTYPE))
 CFLAGS  += -DWIN32=1
 endif
index 6b551de..e3d2651 100644 (file)
@@ -114,7 +114,7 @@ int ncurses_display(deck_t *deck, int notrans, int nofade, int invert) {
         if(max_lines + bar_top + bar_bottom + 2 > LINES)
             fprintf(stderr, "You may need to add additional horizontal rules ('***') to split your file in shorter slides.\n");
         if(max_cols > COLS)
-            fprintf(stderr, "Automatic line wrapping is not supported jet. You may need to shorten some lines by inserting line breaks.\n");
+            fprintf(stderr, "Automatic line wrapping is not supported yet. You may need to shorten some lines by inserting line breaks.\n");
 
         return(1);
     }