Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Milrud__Guy
Beginner
67 Views

How to declare __attribute__(aligned()) inside edl file

Hi,

I am trying to declare an __attribute__ aligned field in my struct, so that my edl file will recognize it.
I'm getting a weird error like "unexpected token: (" 

Is there any other way to do it inside the Enclave.edl? or maybe I'm doing something wrong.

file.h
#ifndef FILE_H
#define FILE_H

#define ALIGN64 __attribute__((aligned(8)))

struct TrustedData
{
      ALIGN64 UINT32 EncryptionMethods;
};
#endif

Enclave.edl

enclave 
{
#include "RDP_Def.h"
    
    trusted 
    {   
        //some functions
        public void ecallFoo([in, out] TrustedData* td);
    };
  
    untrusted 
    {
       //some functions
    };
};
0 Kudos
0 Replies
Reply