Skip to content

Commit

Permalink
Fix the darwin build
Browse files Browse the repository at this point in the history
Change-Id: I87bd356f7673bdbcc8e5f196f4a89182b3a36cbe
  • Loading branch information
Vladimir Chtchetkine committed Aug 24, 2011
1 parent 09e7673 commit 88fceb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion android/camera/camera-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
* camera emulation.
*/

#if defined(_WIN32) || defined(__APPLE__)
#ifdef _WIN32
/* Include declarations that are missing in non-Linux headers. */
#include "android/camera/camera-win.h"
#elif _DARWIN_C_SOURCE
/* Include declarations that are missing in non-Linux headers. */
#include "android/camera/camera-win.h"
#endif /* _WIN32 */
Expand Down
2 changes: 1 addition & 1 deletion android/camera/camera-format-converters.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
#ifdef _WIN32
#elif defined(__APPLE__)
#elif _DARWIN_C_SOURCE
#else
#include <linux/videodev2.h>
#endif
Expand Down

0 comments on commit 88fceb0

Please sign in to comment.