瀏覽代碼

Use __cxa_guard stuff on Teensy 2.0

main
PaulStoffregen 10 年之前
父節點
當前提交
1812ad9023
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      teensy/new.cpp

+ 4
- 4
teensy/new.cpp 查看文件

@@ -20,9 +20,9 @@ void operator delete[](void * ptr)
free(ptr);
}

//int __cxa_guard_acquire(__guard *g) {return !*(char *)(g);};
//void __cxa_guard_release (__guard *g) {*(char *)g = 1;};
//void __cxa_guard_abort (__guard *) {};
int __cxa_guard_acquire(__guard *g) {return !*(char *)(g);};
void __cxa_guard_release (__guard *g) {*(char *)g = 1;};
void __cxa_guard_abort (__guard *) {};

//void __cxa_pure_virtual(void) {};
void __cxa_pure_virtual(void) {};


Loading…
取消
儲存