Skip to content

Commit 16788bc

Browse files
committed
feat: update base SDK to 10.12
1 parent 9753cc9 commit 16788bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

binding.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
],
1919
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ],
2020
"xcode_settings": {
21-
"OTHER_CPLUSPLUSFLAGS": ["-std=c++14", "-stdlib=libc++", "-mmacosx-version-min=10.8"],
21+
"OTHER_CPLUSPLUSFLAGS": ["-std=c++14", "-stdlib=libc++", "-mmacosx-version-min=10.12"],
2222
"OTHER_LDFLAGS": ["-framework CoreFoundation -framework AppKit -framework Contacts"]
2323
}
2424
}]

contacts.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251

252252
NSCalendar *cal = [NSCalendar currentCalendar];
253253
unsigned unitFlags =
254-
NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit;
254+
NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay;
255255
NSDateComponents *birthday_components = [cal components:unitFlags
256256
fromDate:bday_date];
257257

0 commit comments

Comments
 (0)