mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
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:
parent
538eb19bd4
commit
cdb711663c
|
@ -307,7 +307,7 @@
|
||||||
|
|
||||||
// Gross, I know. But you can't use the device idiom because it's not iPad when running
|
// 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.
|
// in zoomed iphone mode but the camera still acts like an ipad.
|
||||||
|
#if HAS_AVFF
|
||||||
static bool isIPad() {
|
static bool isIPad() {
|
||||||
static int is_ipad = -1;
|
static int is_ipad = -1;
|
||||||
if (is_ipad < 0) {
|
if (is_ipad < 0) {
|
||||||
|
@ -321,6 +321,7 @@ static bool isIPad() {
|
||||||
}
|
}
|
||||||
return !!is_ipad;
|
return !!is_ipad;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
- (void)initCapture {
|
- (void)initCapture {
|
||||||
#if HAS_AVFF
|
#if HAS_AVFF
|
||||||
|
|
Loading…
Reference in a new issue