Ignore:
Timestamp:
Apr 9, 2008, 10:22:08 PM (17 years ago)
Author:
cinc
Message:

Portability patches for Windows, Linux, Darwin by Bird.

Location:
trunk/idl-compiler/c-emitter_c
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/idl-compiler/c-emitter_c/c_file_emitter.c

    r295 r326  
    3232*
    3333* ***** END LICENSE BLOCK ***** */
    34 #include <os2.h>
     34#ifdef __OS2__
     35# include <os2.h>
     36#endif
    3537#include <stdlib.h>
    3638#include <string.h>
     
    7981
    8082      /* Do return type */
    81       fprintf(fh, "NOM_Scope ");
     83      fprintf(fh, "NOMDLLEXPORT NOM_Scope ");
    8284      emitReturnType(pLocalPI, pif, pm);
    8385
     
    123125        }
    124126
    125       fprintf(fh, "NOM_Scope ");
     127      fprintf(fh, "NOMDLLEXPORT NOM_Scope ");
    126128      emitReturnType(pLocalPI, pif, pm);
    127129      fprintf(fh, " NOMLINK impl_%s_%s(%s* nomSelf,\n", pif->chrName, pom->chrName, pif->chrName);
     
    167169             
    168170              //printInterface(pif);             
    169               if((pLocalPI->outFile=openOutfile(gScanner, chrTemp))!=NULLHANDLE)
     171              if((pLocalPI->outFile=openOutfile(gScanner, chrTemp))!=NULL)
    170172                {
    171173                  emitCFileHeader(pLocalPI, pif);
     
    173175                  emitOverridenMethods(pLocalPI, pif);
    174176                  closeOutfile(pLocalPI->outFile);
     177                  pLocalPI->outFile = NULL;
    175178                }
    176179              g_free(chrTemp);
Note: See TracChangeset for help on using the changeset viewer.