Changeset 142 for trunk/src


Ignore:
Timestamp:
May 15, 2003, 11:40:50 AM (22 years ago)
Author:
bird
Message:

#425: DosCopy declaration.

Location:
trunk/src/emx/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/emxomf/emxomfld.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r141 r142  
    146146
    147147/* To avoid including os2.h... */
     148#ifdef _System
     149unsigned _System DosCopy (char *, char *, unsigned);
     150#else
    148151unsigned DosCopy (char *, char *, unsigned);
     152#endif
    149153
    150154
  • trunk/src/emx/src/ld/ld.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r141 r142  
    8282
    8383#define FIXSETBUG
    84 
     84#ifdef _System
     85extern int _System DosCopy (char *, char *, int);
     86#else
    8587extern int DosCopy (char *, char *, int);
     88#endif
    8689#endif /* EMX */
    8790
     
    954957int data_reloc_size;            /* total size of data relocation of all input
    955958                                   files.  */
    956  
     959
    957960/* The following are computed by write_header().  */
    958961long int output_text_offset;    /* file offset of the text section.  */
     
    14041407          discard_locals = DISCARD_ALL;
    14051408          break;
    1406          
     1409       
    14071410        case 'y':
    14081411          {
     
    14371440          search_dirs[n_search_dirs - 1] = optarg;
    14381441          break;
    1439          
     1442       
    14401443        case 'M':
    14411444          write_map = 1;
     
    15061509              = (struct string_list_element *)
    15071510                xmalloc (sizeof (struct string_list_element));
    1508            
     1511       
    15091512            new->str = optarg;
    15101513            new->next = set_element_prefixes;
     
    18961899  {
    18971900    char magic[SARMAG];
    1898    
     1901
    18991902    lseek (desc, entry->starting_offset, 0);
    19001903    len = read (desc, magic, SARMAG);
     
    33353338       goes before bss.  */
    33363339    int data_pad_additional = 0;
    3337    
     3340
    33383341    if (specified_data_size && specified_data_size > data_size)
    33393342      data_pad_additional = specified_data_size - data_size;
     
    49294932     the way Unix ld works; I'm going to consider it a feature.  */
    49304933  (void) unlink (output_filename);
    4931  
     4934
    49324935#ifdef __EMX__
    49334936  outdesc = open (output_filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666);
     
    57285731#endif
    57295732            symtype = symptr->defined & ~N_EXT;
    5730  
     5733
    57315734#ifdef EMX /* relocatable */
    57325735          if ((force_common_definition || reloc_flag)
Note: See TracChangeset for help on using the changeset viewer.