104e0dc4aSTimo Kreuzer // 204e0dc4aSTimo Kreuzer // ncommode.cpp 304e0dc4aSTimo Kreuzer // 404e0dc4aSTimo Kreuzer // Copyright (c) Microsoft Corporation. All rights reserved. 504e0dc4aSTimo Kreuzer // 604e0dc4aSTimo Kreuzer // Defines _commode, which sets the default file commit mode to nocommit. 704e0dc4aSTimo Kreuzer // 804e0dc4aSTimo Kreuzer #include <corecrt_internal_stdio.h> 904e0dc4aSTimo Kreuzer 1004e0dc4aSTimo Kreuzer 1104e0dc4aSTimo Kreuzer 1204e0dc4aSTimo Kreuzer // Set default file commit mode to nocommit 13*ffd69754STimo Kreuzer extern "C" { int _commode = 0; } 1404e0dc4aSTimo Kreuzer 1504e0dc4aSTimo Kreuzer 1604e0dc4aSTimo Kreuzer __p__commode()1704e0dc4aSTimo Kreuzerextern "C" int* __cdecl __p__commode() 1804e0dc4aSTimo Kreuzer { 1904e0dc4aSTimo Kreuzer return &_commode; 2004e0dc4aSTimo Kreuzer } 21