Don't define isIPad on simulator because it's unused and that causes a warning on llvm.

git-svn-id: https://zxing.googlecode.com/svn/trunk@2305 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
gln%google.com@gtempaccount.com 2012-06-07 23:19:54 +00:00
parent 538eb19bd4
commit cdb711663c

View file

@ -307,7 +307,7 @@
// Gross, I know. But you can't use the device idiom because it's not iPad when running
// in zoomed iphone mode but the camera still acts like an ipad.
#if HAS_AVFF
static bool isIPad() {
static int is_ipad = -1;
if (is_ipad < 0) {
@ -321,6 +321,7 @@ static bool isIPad() {
}
return !!is_ipad;
}
#endif
- (void)initCapture {
#if HAS_AVFF