Revision 1914 trunk/src/linad99/newfmin.cpp

newfmin.cpp (revision 1914)
235 235

  
236 236
#ifdef _MSC_VER
237 237
  SetConsoleCtrlHandler((PHANDLER_ROUTINE)CtrlHandler, true);
238
#endif
239

  
238
#else
240 239
  /* Check the value of control variable ireturn:
241 240
        -1 (exit status)
242 241
         0 (initialization of function minimizer)
......
244 243
         2 (call2 - line search and Hessian update)
245 244
         >=3 (derivative check)
246 245
  */
247
#if !defined (_MSC_VER)
248
  #if defined( __SUN__) && !(defined __GNU__)
249
    #if defined( __HP__)
250
        if (ireturn <= 0 )
251
        {
252
          signal(SIGINT, &onintr);
253
        }
254
    #else
255
        if (ireturn <= 0 )
256
        {
257
          signal(SIGINT, (SIG_PF)&onintr);
258
        }
259
    #endif
260
  #endif
246
  if (ireturn <= 0 )
247
  {
248
    signal(SIGINT, &onintr);
249
  }
261 250
#endif
262
#if defined( __GNU__) || defined (__BORLANDC__)
263
      if (ireturn <= 0 )
264
      {
265
        signal(SIGINT, &onintr);
266
      }
267
#endif
251

  
268 252
#ifdef __ZTC__
269 253
      if (ireturn <= 0 )
270 254
      {

Also available in: Unified diff