summaryrefslogtreecommitdiff
path: root/py/binary.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-01 20:27:54 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-01 20:32:09 +0000
commit51dfcb4bb7613ed164952712d9a5235a7b833cde (patch)
treec1856c7db0ff6d5ae51190be4325804a0aad43f4 /py/binary.h
parentdb1ac360c39aeedd28b6ef5d653faaa14c3ce01e (diff)
py: Move to guarded includes, everywhere in py/ core.
Addresses issue #1022.
Diffstat (limited to 'py/binary.h')
-rw-r--r--py/binary.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/py/binary.h b/py/binary.h
index dc9d3f680..a0ccbd5f4 100644
--- a/py/binary.h
+++ b/py/binary.h
@@ -23,6 +23,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
+#ifndef __MICROPY_INCLUDED_PY_BINARY_H__
+#define __MICROPY_INCLUDED_PY_BINARY_H__
+
+#include "py/obj.h"
// Use special typecode to differentiate repr() of bytearray vs array.array('B')
// (underlyingly they're same).
@@ -36,3 +40,5 @@ mp_obj_t mp_binary_get_val(char struct_type, char val_type, byte **ptr);
void mp_binary_set_val(char struct_type, char val_type, mp_obj_t val_in, byte **ptr);
long long mp_binary_get_int(mp_uint_t size, bool is_signed, bool big_endian, const byte *src);
void mp_binary_set_int(mp_uint_t val_sz, bool big_endian, byte *dest, mp_uint_t val);
+
+#endif // __MICROPY_INCLUDED_PY_BINARY_H__