summaryrefslogtreecommitdiff
path: root/components/finsh
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-11-05 07:01:49 +0000
committer[email protected] <[email protected]>2012-11-05 07:01:49 +0000
commit42a59720a93de5fa1c92bf18ac42fd2c0955db3a (patch)
treed9620acd662471c92b7a3c5dbdd911abf16ef2ac /components/finsh
parent42e003ac4d912663f22471616a4557a4349b47ac (diff)
Add more checking for _MSC_VER compiler.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2394 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/finsh')
-rw-r--r--components/finsh/finsh.h3
-rw-r--r--components/finsh/shell.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/components/finsh/finsh.h b/components/finsh/finsh.h
index 10ef09da0a..4c26b0fbf3 100644
--- a/components/finsh/finsh.h
+++ b/components/finsh/finsh.h
@@ -64,7 +64,7 @@ typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned long u_long;
-#if !defined(__CC_ARM) && !defined(__IAR_SYSTEMS_ICC__) && !defined(__ADSPBLACKFIN__)
+#if !defined(__CC_ARM) && !defined(__IAR_SYSTEMS_ICC__) && !defined(__ADSPBLACKFIN__) && !defined(_MSC_VER)
typedef unsigned int size_t;
#ifndef NULL
@@ -140,7 +140,6 @@ extern struct finsh_syscall_item *global_syscall_list;
struct finsh_syscall* finsh_syscall_lookup(const char* name);
/* system variable table */
-
struct finsh_sysvar
{
const char* name; /* the name of variable */
diff --git a/components/finsh/shell.c b/components/finsh/shell.c
index c10c193c9c..bede44329b 100644
--- a/components/finsh/shell.c
+++ b/components/finsh/shell.c
@@ -53,7 +53,7 @@ char *strdup(const char *s)
}
#endif
-#if !defined(__CC_ARM) && !defined(__IAR_SYSTEMS_ICC__) && !defined(__ADSPBLACKFIN__)
+#if !defined(__CC_ARM) && !defined(__IAR_SYSTEMS_ICC__) && !defined(__ADSPBLACKFIN__) && !defined(_MSC_VER)
int isalpha( int ch )
{
return (unsigned int)((ch | 0x20) - 'a') < 26u;