comparison mac/dw.m @ 2132:42f8ad7a89e8

Added DW_POINTER_TO_(U)LONGLONG and DW_(U)LONGLONG_TO_POINTER macros. This allows casting with intermediate (u)intptr_t cast to avoid compiler warnings on different systems. Use these macros where necessary in the code. Might need to check the compiler supports LONG LONG... since some compilers we support might not, like old versions of VisualAge C and Watcom.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 04 Jul 2020 17:51:46 +0000
parents fc29c4c2d386
children 79e9c8080ad9
comparison
equal deleted inserted replaced
2131:fc29c4c2d386 2132:42f8ad7a89e8
10898 int dw_notification_send(HWND notification) 10898 int dw_notification_send(HWND notification)
10899 { 10899 {
10900 #ifdef BUILDING_FOR_MOUNTAIN_LION 10900 #ifdef BUILDING_FOR_MOUNTAIN_LION
10901 if(notification) 10901 if(notification)
10902 { 10902 {
10903 NSString *notid = [NSString stringWithFormat:@"dw-notification-%llu", (unsigned long long)notification]; 10903 NSString *notid = [NSString stringWithFormat:@"dw-notification-%llu", DW_POINTER_TO_ULONGLONG(notification)];
10904 10904
10905 #ifdef BUILDING_FOR_MOJAVE 10905 #ifdef BUILDING_FOR_MOJAVE
10906 // Schedule the notification. 10906 // Schedule the notification.
10907 if (@available(macOS 10.14, *)) 10907 if (@available(macOS 10.14, *))
10908 { 10908 {