Skip to content

Commit

Permalink
fix(digest): move external headers to digest.h
Browse files Browse the repository at this point in the history
  • Loading branch information
johanns committed Feb 27, 2025
1 parent 9a2e537 commit 1c231da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions ext/sha3/digest.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
/* Copyright (c) 2012 - 2013 Johanns Gregorian <io+sha3@jsani.com> */

#include "digest.h"

#include <ruby.h>
#include <ruby/encoding.h>
#include <string.h>

#include "sha3.h"
#include "digest.h"

VALUE cSHA3Digest;
VALUE eSHA3DigestError;
Expand Down
4 changes: 4 additions & 0 deletions ext/sha3/digest.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
#ifndef _DIGEST_H_
#define _DIGEST_H_

#include <ruby.h>
#include <ruby/encoding.h>
#include <string.h>

#ifdef __cplusplus
extern "C" {
#endif
Expand Down

0 comments on commit 1c231da

Please sign in to comment.