]> granicus.if.org Git - esp-idf/commitdiff
esp_pthread_init constructor attr was removed
authorAlexey Gerenkov <alexey@espressif.com>
Tue, 5 Sep 2017 17:37:31 +0000 (20:37 +0300)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 6 Sep 2017 02:30:23 +0000 (10:30 +0800)
components/pthread/pthread.c

index 25dae54d79e1da120902705c83c6eda96346f967..73f23a00d7f7cf1a21047f049d2a0ab618f24b85 100644 (file)
@@ -69,7 +69,7 @@ static List_t s_threads_list;
 
 static int IRAM_ATTR pthread_mutex_lock_internal(esp_pthread_mutex_t *mux, TickType_t tmo);
 
-esp_err_t __attribute__((constructor)) esp_pthread_init(void)
+esp_err_t esp_pthread_init(void)
 {
     vListInitialise((List_t *)&s_threads_list);
     s_once_mux = xSemaphoreCreateMutex();