Skip to content

Commit

Permalink
Fix SDK 2.9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Meiguro committed May 15, 2015
1 parent 50f56e3 commit 3af9382
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/simply/simply_wakeup.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "simply.h"

#include "util/compat.h"

#include <pebble.h>

typedef struct LaunchReasonPacket LaunchReasonPacket;
Expand Down
4 changes: 4 additions & 0 deletions src/util/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ typedef union GColor8 {
((void)(bitmap), (void)(palette), (void)(free_on_destroy))
#endif

#ifndef gbitmap_get_format
#define gbitmap_get_format(bitmap) \
(GBitmapFormat1Bit)
#endif

//! Convenience macro to use SDK 3.0 function to set a `PropertyAnimation`'s
//! `values.from.grect` field.
Expand Down

0 comments on commit 3af9382

Please sign in to comment.