Revision 1510 trunk/src/nh99/tpl2cpp.lex

tpl2cpp.lex (revision 1510)
3920 3920
      if (makedll)
3921 3921
      {
3922 3922
        if (!makegaussdll)
3923
          fprintf(ftopmain,"\nvoid __stdcall __declspec(dllexport) ");
3923
        {
3924
          fprintf(ftopmain, "#ifdef _MSC_VER\n");
3925
          fprintf(ftopmain, "void __stdcall __declspec(dllexport) \n");
3926
          fprintf(ftopmain, "#else\n");
3927
          fprintf(ftopmain, "void \n");
3928
          fprintf(ftopmain, "#endif\n");
3929
        }
3924 3930
        else
3925 3931
          fprintf(ftopmain,"\nint __stdcall __declspec(dllexport) ");
3926 3932
      }
......
4073 4079
        if (!splus_debug_flag)
4074 4080
        {
4075 4081
          if (!makegaussdll)
4076
            fprintf(ftopmain,"\nvoid __stdcall __declspec(dllexport) ");
4082
          {
4083
            fprintf(ftopmain, "#ifdef _MSC_VER\n");
4084
            fprintf(ftopmain, "void __stdcall __declspec(dllexport) \n");
4085
            fprintf(ftopmain, "#else\n");
4086
            fprintf(ftopmain, "void \n");
4087
            fprintf(ftopmain, "#endif\n");
4088
          }
4077 4089
          else
4078 4090
            fprintf(ftopmain,"\nint __stdcall __declspec(dllexport) ");
4079 4091
        }

Also available in: Unified diff