Changeset 57aada in git


Ignore:
Timestamp:
Oct 1, 2014, 2:57:59 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
Children:
75ef2974c275b76431a0aaf72d5136dad3c63b63
Parents:
351717f210df19b5dd8d203ad7fc30592d9516c6
Message:
windows port: more __CYGWIN__
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/help.cnf

    r351717f r57aada  
    2525# the default help browsers builtin, dummy and emacs are always
    2626#   available and should NOT be mentioned here
    27 # ix86_Win: has additional default browsers: htmlhelp, html and winhlp
     27# __CYGWIN__: has additional default browsers: htmlhelp, html and winhlp
    2828#   also not mentioned here
    2929#----------------------------------------------------
  • Singular/sing_win.cc

    r351717f r57aada  
    1111
    1212#include <kernel/mod2.h>
    13 #ifdef ix86_Win
     13#ifdef __CYGWIN__
    1414#include <windows.h>
    1515#include <winuser.h>
     
    110110}
    111111
    112 #endif /*ix86_Win */
     112#endif /*__CYGWIN__ */
  • Singular/sing_win.h

    r351717f r57aada  
    22#define SING_WIN_H
    33
    4 #ifdef ix86_Win
     4#ifdef __CYGWIN__
    55
    66void heOpenWinHtmlHelp(const char* keyw, char* helppath );
     
    88void heOpenWinntUrl(const char* url, int local);
    99
    10 #endif /*ix86_Win */
     10#endif /*__CYGWIN__ */
    1111#endif /* SING_WIN_H */
  • kernel/oswrapper/feread.cc

    r351717f r57aada  
    1414
    1515//----------------------------------------
    16 #ifdef ix86_Win
     16#ifdef __CYGWIN__
    1717#define READLINE_STATIC
    1818#endif
  • kernel/oswrapper/fereadl.c

    r351717f r57aada  
    190190    else
    191191    {
    192       #ifndef ix86_Win
     192      #ifndef __CYGWIN__
    193193      extern char *BC;
    194194      extern char *UP;
  • kernel/spectrum/semic.cc

    r351717f r57aada  
    2424
    2525#include <string.h>
    26 
    27 #ifndef ix86_Win
    28 //#include<values.h>
    29 #endif
    3026
    3127#include <misc/intvec.h>
  • resources/feFopen.cc

    r351717f r57aada  
    5353    {
    5454      const char* home = getenv("HOME");
    55 #ifdef ix86_Win
     55#ifdef __CUGWIN__
    5656      if ((home==NULL)||(!access(home,X_OK)))
    5757        home = getenv("SINGHOME");
     
    166166FILE* myfopen(const char *path, const char *mode)
    167167{
    168 #if (defined(CYGWIN) || defined(ix86_Win))
     168#if (defined(__CUGWIN__))
    169169  char mmode[4];
    170170  int i;
  • resources/feResource.cc

    r351717f r57aada  
    8787  {"IdxFile",   'x',    feResFile,  "SINGULAR_IDX_FILE",    "%D/doc/singular.idx",  (char *)""},
    8888  {"HtmlDir",   'h',    feResDir,   "SINGULAR_HTML_DIR",    "%D/singular/html",              (char *)""},
    89 #ifdef ix86_Win
     89#ifdef __CYGWIN__
    9090  {"HtmlHelpFile",'C',  feResFile,  "SINGULAR_CHM_FILE",    "%r/doc/Manual.chm",    (char *)""},
    9191#endif
     
    100100  {"EmacsDir",  'e',    feResDir,   "ESINGULAR_EMACS_DIR",  "%D/singular/emacs",             (char *)""},
    101101  {"SingularXterm",'M', feResBinary,"TSINGULAR_SINGULAR",   "%b/Singular",          (char *)""},
    102 #ifdef ix86_Win
     102#ifdef __CYGWIN__
    103103  {"rxvt",      'X',    feResBinary,"RXVT",                 "%b/rxvt",              (char *)""},
    104104#else
     
    130130static void mystrcpy(char* d, char* s);
    131131static char* feSprintf(char* s, const char* fmt, int warn = -1);
    132 #if defined(ix86_Win) && defined(__GNUC__)
     132#if defined(__CYGWIN__) && defined(__GNUC__)
    133133// utility function of Cygwin32:
    134134extern "C" int cygwin32_posix_path_list_p (const char *path);
     
    167167void feInitResources(const char* argv0)
    168168{
    169 #if defined(ix86_Win) && defined(__GNUC__)
     169#if defined(__CYGWIN__) && defined(__GNUC__)
    170170  if (cygwin32_posix_path_list_p (getenv("PATH")))
    171171    fePathSep = ':';
     
    407407    return NULL;
    408408  }
    409 #ifdef ix86_Win // stupid WINNT sometimes gives you argv[0] within ""
     409#ifdef __CYGWIN__ // stupid WINNT sometimes gives you argv[0] within ""
    410410  if (*feArgv0 == '"')
    411411  {
     
    471471      printf("Clean value:%s\n", value);
    472472#endif
    473 #ifdef ix86_Win
     473#ifdef __CYGWIN__
    474474#ifdef RESOURCE_DEBUG
    475475      printf("Clean WINNT value:%s\n", value);
  • resources/feResource.h

    r351717f r57aada  
    5757const char fePathSep =
    5858/* not really cygwin, applies to all windows systems:*/
    59 #if (defined(CYGWIN) || defined(ix86_Win))
     59#if (defined(__CYGWIN__))
    6060                ';'
    6161#else
Note: See TracChangeset for help on using the changeset viewer.