Changeset 7899:759a3038ec6f in orange


Ignore:
Timestamp:
05/11/11 10:00:14 (3 years ago)
Author:
jzbontar <jure.zbontar@…>
Branch:
default
Convert:
959b9d10a757c57e31a9f5059ab3e49d9b44cd8e
Message:

add #include <cstddef> needed for offsetof

Location:
source
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • source/orange/root.hpp

    r6531 r7899  
    3131#include <string> 
    3232using namespace std; 
    33  
    34 #ifndef offsetof 
    35   #define offsetof(_TYPE, _MEMBER) ((size_t) &((TYPE *)0)->MEMBER) 
    36 #endif 
    3733 
    3834#define __REGISTER_ABSTRACT_CLASS \ 
  • source/pyxtract/pyprops.py

    r7704 r7899  
    218218    off.write(notice) 
    219219 
    220     off.write('#include "../%s"\n\n' % hppfile) 
     220    off.write('#include "../%s"\n' % hppfile) 
     221    off.write('#include <cstddef>\n\n') 
    221222 
    222223# - add parent fields 
  • source/pyxtract/pyxtract.py

    r7715 r7899  
    532532  newfiles.append(targetname) 
    533533  outfile.write("/* This file was generated by pyxtract \n   Do not edit.*/\n\n") 
     534  outfile.write('#include <cstddef>\n\n') 
    534535 
    535536  usedbases=usedbases.keys() 
Note: See TracChangeset for help on using the changeset viewer.