Browse Source

defines.h, winmain.c, .h: fix --with-wingui for CYGWIN

pre-master-46
h_vogt 13 years ago
committed by rlar
parent
commit
8b8f275645
  1. 2
      src/include/ngspice/defines.h
  2. 7
      src/winmain.c
  3. 4
      src/winmain.h

2
src/include/ngspice/defines.h

@ -74,7 +74,7 @@
/* Alternate initialisation file name */ /* Alternate initialisation file name */
#define ALT_INITSTR "spice.rc" #define ALT_INITSTR "spice.rc"
#if defined(__MINGW32__) || defined(_MSC_VER)
#if defined(__MINGW32__) || defined(_MSC_VER) || defined (HAS_WINGUI)
#define DIR_PATHSEP "\\" #define DIR_PATHSEP "\\"
#define DIR_TERM '\\' #define DIR_TERM '\\'
#define DIR_PATHSEP_LINUX "/" #define DIR_PATHSEP_LINUX "/"

7
src/winmain.c

@ -1384,8 +1384,11 @@ int system( const char * command)
} // system Windows95 } // system Windows95
#endif #endif
*/ */
#ifdef __CYGWIN__
/* Strip leading spaces, return a copy of s */ /* Strip leading spaces, return a copy of s */
/*static char* rlead(char *s)
static char*
rlead(char *s)
{ {
int i,j=0; int i,j=0;
static char temp[512]; static char temp[512];
@ -1406,7 +1409,7 @@ int system( const char * command)
temp[j] = '\0'; temp[j] = '\0';
return copy(temp); return copy(temp);
} }
*/
#endif
void winmessage(char* new_msg) void winmessage(char* new_msg)
{ {

4
src/winmain.h

@ -5,7 +5,9 @@
/* Forward definition of main() */ /* Forward definition of main() */
int xmain( int argc, char * argv[]); int xmain( int argc, char * argv[]);
/* forward of Update function */ /* forward of Update function */
//static char* rlead(char*);
#ifdef __CYGWIN__
static char* rlead(char*);
#endif
void winmessage(char*); void winmessage(char*);
static void HistoryInit(void); static void HistoryInit(void);

Loading…
Cancel
Save