]> www.ginac.de Git - ginac.git/blobdiff - ginsh/ginsh.h
- switched to automake build environment
[ginac.git] / ginsh / ginsh.h
index 24f37c00555990eec0934280bf5935b123338f33..335e0f1af91613ecb60102879b584d6c284637a8 100644 (file)
@@ -2,8 +2,8 @@
  *  ginsh.h - GiNaC Interactive Shell, global definitions
  */
 
-#ifndef GINSH_H_
-#define GINSH_H_
+#ifndef GINSH_H
+#define GINSH_H
 
 // yacc semantic type
 #define YYSTYPE ex
@@ -21,14 +21,9 @@ extern char yytext[];
 typedef map<string, symbol> sym_tab;
 extern sym_tab syms;
 
-// Ersatz functions
+// Prototypes for missing functions
 #ifndef HAVE_STRDUP
-char *strdup(const char *s)
-{
-       char *n = (char *)malloc(strlen(s) + 1);
-       strcpy(n, s);
-       return n;
-}
+extern char *strdup(const char *s);
 #endif
 
 #endif