Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#ifndef ENCLAVE_U_H__
#define ENCLAVE_U_H__
#include <stdint.h>
#include <wchar.h>
#include <stddef.h>
#include <string.h>
#include "sgx_edger8r.h" /* for sgx_satus_t etc. */
#include <stdlib.h> /* for size_t */
#define SGX_CAST(type, item) ((type)(item))
#ifdef __cplusplus
extern "C" {
#endif
void SGX_UBRIDGE(SGX_NOCONVENTION, ocall_print_string, (const char* str));
sgx_status_t printf_helloworld(sgx_enclave_id_t eid);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment