summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/config.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-05-07 13:28:06 +0000
committerBenny Prijono <bennylp@teluu.com>2008-05-07 13:28:06 +0000
commitf81640f19e9089919f2574bbd379303fb5e5ac8f (patch)
treec74958fe6af46ecbca94dcd43434b2578c57754d /pjlib/include/pj/config.h
parent02da5a7a43635662ea100c0c090e9e09f8c5632e (diff)
Added nios2 processor settings PJLIB in config.h (thanks F)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1949 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/config.h')
-rw-r--r--pjlib/include/pj/config.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/pjlib/include/pj/config.h b/pjlib/include/pj/config.h
index ec1b283f..22564420 100644
--- a/pjlib/include/pj/config.h
+++ b/pjlib/include/pj/config.h
@@ -251,6 +251,18 @@
# define PJ_IS_LITTLE_ENDIAN 0
# define PJ_IS_BIG_ENDIAN 1
+#elif defined (PJ_M_NIOS2) || defined(__nios2) || defined(__nios2__) || \
+ defined(__NIOS2__) || defined(__M_NIOS2) || defined(_ARCH_NIOS2)
+ /*
+ * Nios2, little endian
+ */
+# undef PJ_M_NIOS2
+# define PJ_M_NIOS2 1
+# define PJ_M_NAME "nios2"
+# define PJ_HAS_PENTIUM 0
+# define PJ_IS_LITTLE_ENDIAN 1
+# define PJ_IS_BIG_ENDIAN 0
+
#else
# error "Please specify target machine."
#endif