]> granicus.if.org Git - esp-idf/commitdiff
Add declarations of private cxx_guard functions (__cxa_guard_*) in cxx component...
authorPaul Reimer <paul@p-rimes.net>
Mon, 14 May 2018 17:17:04 +0000 (10:17 -0700)
committerAngus Gratton <gus@projectgus.com>
Mon, 4 Jun 2018 06:36:44 +0000 (16:36 +1000)
Merges https://github.com/espressif/esp-idf/pull/1956

components/cxx/cxx_guards.cpp

index 288ff3ea03c72a49f0a8a74c452c15ca1d2bd199..48819a7ab573cfb2ccce2e594224bcf9a13b67c4 100644 (file)
@@ -33,6 +33,10 @@ static size_t s_static_init_waiting_count = 0;              //!< number of tasks
 static size_t s_static_init_max_waiting_count = 0;          //!< maximum ever value of the above; can be inspected using GDB for debugging purposes
 #endif
 
+extern "C" int __cxa_guard_acquire(__guard* pg);
+extern "C" void __cxa_guard_release(__guard* pg);
+extern "C" void __cxa_guard_abort(__guard* pg);
+extern "C" void __cxa_guard_dummy();
 
 /**
  * Layout of the guard object (defined by the ABI).