Ignore:
Timestamp:
Jun 29, 2008, 6:33:14 PM (17 years ago)
Author:
cinc
Message:

Disable macros in header files when using the NOM compiler.

File:
1 edited

Legend:

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

    r375 r376  
    6464  fprintf(fh, "#endif /* __cplusplus */\n\n");
    6565
     66  fprintf(fh, "#ifndef NOMCOMPILER\n");
     67 
    6668  /* Define the name as an object */
    6769  fprintf(fh, "#if !defined(_%s_defined)\n", pif->chrName);
     
    7274  fprintf(fh, "#endif\n");
    7375  fprintf(fh, "#endif\n\n");
    74 
    7576}
    7677
     
    356357  pArray=pif->pMethodArray;
    357358 
    358   fprintf(fh, "#ifdef NOMCOMPILER\n");
     359  fprintf(fh, "#else /* NOMCOMPILER */\n");
     360
     361  emitInterfaceIncludes(pLocalPI, pif);
    359362
    360363  fprintf(fh, "interface %s", pif->chrName);
Note: See TracChangeset for help on using the changeset viewer.