Skip to content

Commit 91a2dca

Browse files
committed
MSVC lacks __func__, use __FUNCTION__ instead
1 parent 618deae commit 91a2dca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/exp2python/src/classes_python.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ char* EXPRto_python( Expression e ) {
575575

576576
buf = ( char * )sc_malloc( bufsize );
577577
if( !buf ) {
578-
fprintf(stderr, "%s failed to allocate buffer: %s\n", __func__, strerror(errno) );
578+
fprintf(stderr, "%s failed to allocate buffer: %s\n", __FUNCTION__, strerror(errno) );
579579
abort();
580580
}
581581

@@ -670,7 +670,7 @@ char* EXPRto_python( Expression e ) {
670670

671671
temp = ( char * )sc_realloc( buf, 1 + strlen(buf) );
672672
if( temp == 0 ) {
673-
fprintf(stderr, "%s failed to realloc buffer: %s\n", __func__, strerror(errno) );
673+
fprintf(stderr, "%s failed to realloc buffer: %s\n", __FUNCTION__, strerror(errno) );
674674
abort();
675675
}
676676

0 commit comments

Comments
 (0)