Skip to content

Commit

Permalink
(#17) WindowHandle now refers to int64_t on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
s1hofmann committed Aug 5, 2020
1 parent d656baa commit c5bbe90
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,12 @@ H_INLINE MMRect MMRectMake(int64_t x, int64_t y, int64_t width, int64_t height)
#define CGPointFromMMPoint(p) CGPointMake((CGFloat)(p).x, (CGFloat)(p).y)
#define MMPointFromCGPoint(p) MMPointMake((size_t)(p).x, (size_t)(p).y)

typedef int64_t WindowHandle;
typedef int64_t PID;

#elif defined(IS_WINDOWS)

#define MMPointFromPOINT(p) MMPointMake((size_t)p.x, (size_t)p.y)

typedef int64_t WindowHandle;

#endif

typedef int64_t WindowHandle;

#endif /* TYPES_H */

0 comments on commit c5bbe90

Please sign in to comment.