Revision 1433 trunk/src/nh99/tpl2cpp.lex

tpl2cpp.lex (revision 1433)
3917 3917
    {
3918 3918
      if (makedll)
3919 3919
      {
3920
        fprintf(ftopmain,"\n#if !defined(__MSVC32__)"
3921
           "\n#  define __declspec(x)"
3922
           "\n#endif\n");
3923

  
3924
        fprintf(ftopmain,"\n#if !defined(__BORLANDC__)"
3925
           "\n#  define _export"
3926
           "\n#else"
3927
           "\n#  define _export __stdcall"
3928
           "\n#endif\n");
3929 3920
        if (!makegaussdll)
3930
          fprintf(ftopmain,"\n__declspec(dllexport) void _export ");
3921
          fprintf(ftopmain,"\nvoid __stdcall __declspec(dllexport) ");
3931 3922
        else
3932
          fprintf(ftopmain,"\n__declspec(dllexport) int _export ");
3923
          fprintf(ftopmain,"\nint __stdcall __declspec(dllexport) ");
3933 3924
      }
3934 3925
      else
3935 3926
      {
......
4079 4070
        }
4080 4071
        if (!splus_debug_flag)
4081 4072
        {
4082
          fprintf(ftopmain,"\n#if !defined(__MSVC32__)"
4083
            "\n#  define __declspec(x)"
4084
            "\n#endif\n");
4085

  
4086
          fprintf(ftopmain,"\n#if !defined(__BORLANDC__)"
4087
            "\n#  define _export"
4088
           "\n#else"
4089
           "\n#  define _export __stdcall"
4090
            "\n#endif\n");
4091

  
4092 4073
          if (!makegaussdll)
4093
            fprintf(ftopmain,"\n__declspec(dllexport) void _export ");
4074
            fprintf(ftopmain,"\nvoid __stdcall __declspec(dllexport) ");
4094 4075
          else
4095
            fprintf(ftopmain,"\n__declspec(dllexport) int _export ");
4076
            fprintf(ftopmain,"\nint __stdcall __declspec(dllexport) ");
4096 4077
        }
4097 4078
        else
4098 4079
        {

Also available in: Unified diff