aboutsummaryrefslogtreecommitdiffstats
path: root/erts/lib_src/common/erl_printf.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-07-12 10:58:19 +0200
committerLukas Larsson <[email protected]>2017-07-17 10:01:53 +0200
commit241f27c4942d6b765abcec9d5a9712e07861bc13 (patch)
tree4dda3d3f3fa3cb7a344019583b218a252ae708c3 /erts/lib_src/common/erl_printf.c
parenta69339d9f8c73d2a0a2369289b464db00c479302 (diff)
downloadotp-241f27c4942d6b765abcec9d5a9712e07861bc13.tar.gz
otp-241f27c4942d6b765abcec9d5a9712e07861bc13.tar.bz2
otp-241f27c4942d6b765abcec9d5a9712e07861bc13.zip
erts: Cleanup removal of non-smp emulators
Diffstat (limited to 'erts/lib_src/common/erl_printf.c')
-rw-r--r--erts/lib_src/common/erl_printf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/erts/lib_src/common/erl_printf.c b/erts/lib_src/common/erl_printf.c
index 98130a72c6..9031a4c5b7 100644
--- a/erts/lib_src/common/erl_printf.c
+++ b/erts/lib_src/common/erl_printf.c
@@ -63,7 +63,7 @@ void (*erts_printf_unblock_fpe)(int) = NULL;
#undef FWRITE
#undef PUTC_ON_SMALL_WRITES
-#if defined(USE_THREADS) && defined(HAVE_FLOCKFILE)
+#if defined(HAVE_FLOCKFILE)
# define FLOCKFILE(FP) flockfile(FP)
# define FUNLOCKFILE(FP) funlockfile(FP)
# ifdef HAVE_PUTC_UNLOCKED
@@ -73,8 +73,7 @@ void (*erts_printf_unblock_fpe)(int) = NULL;
# ifdef HAVE_FWRITE_UNLOCKED
# define FWRITE fwrite_unlocked
# endif
-#endif
-#if !defined(FLOCKFILE) || !defined(FUNLOCKFILE)
+#else
# define FLOCKFILE(FP)
# define FUNLOCKFILE(FP)
#endif