aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/lpc10
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-26 18:50:49 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-26 18:50:49 +0000
commitf9db8abd4d1bfa16f4135638c600ba0eaadec083 (patch)
tree7d179763d95152f24ed90027acafdc363c2afcef /codecs/lpc10
parent6b2aaaa721016826b533a71fb162df76db99fecc (diff)
Make it build and run on MacOS X
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1673 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/lpc10')
-rwxr-xr-xcodecs/lpc10/Makefile2
-rwxr-xr-xcodecs/lpc10/lpc10.h11
2 files changed, 11 insertions, 2 deletions
diff --git a/codecs/lpc10/Makefile b/codecs/lpc10/Makefile
index 83ffc225b..5e04d5f73 100755
--- a/codecs/lpc10/Makefile
+++ b/codecs/lpc10/Makefile
@@ -26,9 +26,11 @@ CFLAGS = $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -fPIC
#CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi)
#fix for PPC processors
+ifneq ($(OSARCH),Darwin)
ifneq ($(PROC),ppc)
CFLAGS+= -march=$(PROC)
endif
+endif
LIB = $(LIB_TARGET_DIR)/liblpc10.a
diff --git a/codecs/lpc10/lpc10.h b/codecs/lpc10/lpc10.h
index 02c59b1e4..0f751c6de 100755
--- a/codecs/lpc10/lpc10.h
+++ b/codecs/lpc10/lpc10.h
@@ -1,8 +1,11 @@
/*
$Log$
-Revision 1.16 2003/04/23 19:13:35 markster
-More OpenBSD patches
+Revision 1.17 2003/10/26 18:50:49 markster
+Make it build and run on MacOS X
+
+Revision 1.3 2003/10/26 18:50:49 markster
+Make it build and run on MacOS X
Revision 1.2 2003/04/23 19:13:35 markster
More OpenBSD patches
@@ -49,6 +52,10 @@ typedef int INT16;
typedef long INT32;
#endif
+#if defined(__APPLE__)
+typedef short INT16;
+typedef int INT32;
+#endif
/* The initial values for every member of this structure is 0, except