summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsua/getopt.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-02-14 21:15:30 +0000
committerBenny Prijono <bennylp@teluu.com>2006-02-14 21:15:30 +0000
commitdf5f6e5a8039a1a9e7f104e18e492352af68a36d (patch)
tree4c12724577bd0145625a5542e19fdd0160316dd5 /pjsip/src/pjsua/getopt.c
parent8404d0cf403558e70417e9c90c29b5c1e4713db1 (diff)
Ported pjsip to WinCE
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@184 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua/getopt.c')
-rw-r--r--pjsip/src/pjsua/getopt.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/pjsip/src/pjsua/getopt.c b/pjsip/src/pjsua/getopt.c
index eae96f1b..c6e67d1b 100644
--- a/pjsip/src/pjsua/getopt.c
+++ b/pjsip/src/pjsua/getopt.c
@@ -29,7 +29,7 @@
*
* modified by Mike Borella <mike_borella@mw.3com.com>
*
- * $Id: getopt.c,v 1.4 2000/10/30 22:06:03 mborella Exp $
+ * $Id$
*/
#ifdef HAVE_CONFIG_H
@@ -295,7 +295,7 @@ static char *posixly_correct;
On some systems, it contains special magic macros that don't work
in GCC. */
#include <string.h>
-#define my_index pj_native_strchr
+#define my_index pj_ansi_strchr
#else
static char *
@@ -485,7 +485,8 @@ _getopt_initialize (argc, argv, optstring)
nextchar = NULL;
- posixly_correct = getenv ("POSIXLY_CORRECT");
+ //posixly_correct = getenv ("POSIXLY_CORRECT");
+ posixly_correct = NULL;
/* Determine how to handle the ordering of options and nonoptions. */
@@ -661,7 +662,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
then exchange with previous non-options as if it were an option,
then skip everything else like a non-option. */
- if (optind != argc && !pj_native_strcmp(argv[optind], "--"))
+ if (optind != argc && !pj_ansi_strcmp(argv[optind], "--"))
{
optind++;