Ticket #867: calculator.diff

File calculator.diff, 1.8 KB (added by engima, 18 years ago)

Compilation and link fixes for GCC4

  • src/apps/calculator/Prefs.cpp

     
    77 */
    88#include <StorageKit.h>
    99#include <string.h>
    10 #include <iostream.h>
     10#include <iostream>
    1111#include "Prefs.h"
    1212
    1313bool ReadPrefs(const char *prefsname, void *prefs, size_t sz)
  • src/apps/calculator/Prefs.h

     
    1111bool ReadPrefs(const char *prefsname, void *prefs, size_t sz);
    1212bool WritePrefs(const char *prefsname, void *prefs, size_t sz);
    1313
    14 #endif
    15  No newline at end of file
     14#endif
     15
  • src/apps/calculator/Jamfile

     
    99    CalcWindow.cpp
    1010    FrameView.cpp
    1111    Prefs.cpp
    12     : be
     12    : be $(TARGET_LIBSTDC++)
    1313    : Calculator.rdef
    1414    ;
  • src/apps/calculator/Calculator.cpp

     
    55 * Authors:
    66 *      Peter Wagner <pwagner@stanfordalumni.org>
    77 */
    8 #include <iostream.h>
     8#include <iostream>
    99
    1010#include <Alert.h>
    1111#include <Window.h>
  • src/apps/calculator/CalcEngine.h

     
    1111#include <stdio.h>
    1212#include <stdlib.h>
    1313#include <math.h>
     14#include <string.h>
    1415
    1516typedef unsigned long ulong;
    1617