Permalink
Browse files

[iOS] Fix App Store validation warnings

  • Loading branch information...
1 parent 3968a2b commit 7923d909874612d9652a757643321b6236d59312 Romain Goyet committed Jan 10, 2012
Showing with 4 additions and 2 deletions.
  1. +1 −1 src/os_mac.h
  2. +3 −1 src/os_unix.c
View
@@ -261,7 +261,7 @@
#endif
#ifndef HAVE_CONFIG_H
-# ifdef __APPLE_CC__
+# if defined(__APPLE_CC__) && defined(__MAC_OS_X_VERSION_MIN_REQUIRED)
/* Assuming compiling for MacOS X */
/* Trying to take advantage of the prebinding */
# define HAVE_TGETENT
View
@@ -3650,7 +3650,9 @@ mch_set_shellsize()
* undefined, check the output of configure. It could probably not
* find a ncurses, termcap or termlib library.
*/
- term_set_winsize((int)Rows, (int)Columns);
+#if defined(HAVE_TGETENT)
+ term_set_winsize((int)Rows, (int)Columns);
+#endif
out_flush();
screen_start(); /* don't know where cursor is now */
}

0 comments on commit 7923d90

Please sign in to comment.