<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="+1">In Delphi 5, <br>
var<br>
G : TAutoRefreshFlag;<br>
<br>
//where type TAutoRefreshFlag = (arNone, arAutoInc, arDefault);<br>
<br>
sizeof(G) returns 1<br>
<br>
<br>
in FPC<br>
if defined<br>
type TAutoRefreshFlag = (arNone, arAutoInc, arDefault);<br>
<br>
and same <br>
Var G : TAutoRefreshFlag;<br>
<br>
sizeof(G) returns 4.<br>
<br>
<br>
This different behaviour break some code when I port them from Delphi 5
to FPC.<br>
<br>
Is there a compiler directive I can do to ensure compatibility?<br>
<br>
Dennis<br>
<br>
<br>
</font>
</body>
</html>