Skip to content

Commit

Permalink
Reverse sense of new_inets test, for better interaction with rebar
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyg committed Nov 15, 2011
1 parent 834e5ff commit f471b41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -15,9 +15,9 @@ PACKAGE_NAME=rfc4627_jsonrpc
## change, and supply a compile-time macro definition to allow
## rfc4627_jsonrpc_inets.erl to adapt to the new path.
ifeq ($(shell test R14A \> $$(erl -noshell -eval 'io:format(erlang:system_info(otp_release)), halt().') && echo yes),yes)
INETS_DEF=
INETS_DEF=-Dold_inets
else
INETS_DEF=-Dnew_inets
INETS_DEF=
endif

all: $(TARGETS)
Expand Down
6 changes: 3 additions & 3 deletions src/rfc4627_jsonrpc_inets.erl
Expand Up @@ -91,10 +91,10 @@
%% The path to httpd.hrl has changed in OTP R14A and newer. Our
%% Makefile detects the change for us, and supplies a compile-time
%% macro definition to allow us to adapt to the new path.
-ifdef(new_inets).
-include_lib("inets/src/http_server/httpd.hrl").
-else.
-ifdef(old_inets).
-include_lib("inets/src/httpd.hrl").
-else.
-include_lib("inets/src/http_server/httpd.hrl").
-endif.

-export([do/1, load/2]).
Expand Down

0 comments on commit f471b41

Please sign in to comment.