MozLocaleBindings.h (652B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #ifndef mozilla_intl_locale_MozLocaleBindings_h 6 #define mozilla_intl_locale_MozLocaleBindings_h 7 8 #include "mozilla/intl/unic_langid_ffi_generated.h" 9 #include "mozilla/intl/fluent_langneg_ffi_generated.h" 10 11 namespace std { 12 13 template <> 14 struct default_delete<mozilla::intl::ffi::LanguageIdentifier> { 15 public: 16 void operator()(mozilla::intl::ffi::LanguageIdentifier* aPtr) const { 17 unic_langid_destroy(aPtr); 18 } 19 }; 20 21 } // namespace std 22 23 #endif