diff --git a/core-foundation-sys/src/locale.rs b/core-foundation-sys/src/locale.rs index b394714..a1fd764 100644 --- a/core-foundation-sys/src/locale.rs +++ b/core-foundation-sys/src/locale.rs @@ -12,6 +12,7 @@ use base::{CFIndex, CFAllocatorRef, CFTypeRef, LangCode, RegionCode, CFTypeID}; use array::CFArrayRef; use string::CFStringRef; use dictionary::CFDictionaryRef; +use notification_center::CFNotificationName; #[repr(C)] pub struct __CFLocale(c_void); @@ -34,7 +35,7 @@ extern { */ /* Locale Change Notification */ - //pub static kCFLocaleCurrentLocaleDidChangeNotification: CFNotificationName; + pub static kCFLocaleCurrentLocaleDidChangeNotification: CFNotificationName; /* Locale Property Keys */ pub static kCFLocaleIdentifier: CFLocaleKey; diff --git a/core-foundation-sys/src/timezone.rs b/core-foundation-sys/src/timezone.rs index 8e73ba2..91e7ed0 100644 --- a/core-foundation-sys/src/timezone.rs +++ b/core-foundation-sys/src/timezone.rs @@ -16,6 +16,7 @@ use array::CFArrayRef; use dictionary::CFDictionaryRef; use data::CFDataRef; use locale::CFLocaleRef; +use notification_center::CFNotificationName; #[repr(C)] pub struct __CFTimeZone(c_void); @@ -36,7 +37,7 @@ extern { * CFTimeZone.h */ - //pub static kCFTimeZoneSystemTimeZoneDidChangeNotification: CFNotificationName; // todo + pub static kCFTimeZoneSystemTimeZoneDidChangeNotification: CFNotificationName; /* Creating a Time Zone */ pub fn CFTimeZoneCreate(allocator: CFAllocatorRef, name: CFStringRef, data: CFDataRef) -> CFTimeZoneRef;