diff options
Diffstat (limited to 'src/misc.erl')
-rw-r--r-- | src/misc.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/misc.erl b/src/misc.erl index 32699e76b..06d81cb88 100644 --- a/src/misc.erl +++ b/src/misc.erl @@ -33,7 +33,7 @@ atom_to_binary/1, binary_to_atom/1, tuple_to_binary/1, l2i/1, i2l/1, i2l/2, expr_to_term/1, term_to_expr/1, now_to_usec/1, usec_to_now/1, encode_pid/1, decode_pid/2, - compile_exprs/2, join_atoms/2, try_read_file/1]). + compile_exprs/2, join_atoms/2, try_read_file/1, have_eimp/0]). %% Deprecated functions -export([decode_base64/1, encode_base64/1]). @@ -213,6 +213,12 @@ try_read_file(Path) -> erlang:error(badarg) end. +-ifdef(GRAPHICS). +have_eimp() -> true. +-else. +have_eimp() -> false. +-endif. + %%%=================================================================== %%% Internal functions %%%=================================================================== |