Skip to content

Instantly share code, notes, and snippets.

@sangfansh
Created July 11, 2018 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sangfansh/1439a803558f63671a35b59168406786 to your computer and use it in GitHub Desktop.
Save sangfansh/1439a803558f63671a35b59168406786 to your computer and use it in GitHub Desktop.
#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