In Delphi 5,
 var
  G  : TAutoRefreshFlag;

//where type TAutoRefreshFlag = (arNone, arAutoInc, arDefault);

sizeof(G)  returns 1


in FPC
if defined
  type TAutoRefreshFlag = (arNone, arAutoInc, arDefault);

and same
  Var G : TAutoRefreshFlag;

sizeof(G) returns 4.


This different behaviour break some code when I port them from Delphi 5 to FPC.

Is there a compiler directive I can do to ensure compatibility?

Dennis


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to